mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-06 02:42:37 +01:00
Merge branch 'feat/mobile' into slowcord
This commit is contained in:
commit
90e0fc66c8
@ -35,6 +35,8 @@ import { Recipient } from "@fosscord/util";
|
||||
|
||||
export async function onIdentify(this: WebSocket, data: Payload) {
|
||||
clearTimeout(this.readyTimeout);
|
||||
if (typeof data.d?.client_state?.highest_last_message_id === "number")
|
||||
data.d.client_state.highest_last_message_id += "";
|
||||
check.call(this, IdentifySchema, data.d);
|
||||
|
||||
const identify: IdentifySchema = data.d;
|
||||
|
@ -38,7 +38,7 @@ export const IdentifySchema = {
|
||||
$capabilities: Number,
|
||||
$client_state: {
|
||||
$guild_hashes: Object,
|
||||
$highest_last_message_id: String,
|
||||
$highest_last_message_id: String || Number,
|
||||
$read_state_version: Number,
|
||||
$user_guild_settings_version: Number,
|
||||
$user_settings_version: undefined,
|
||||
@ -81,7 +81,7 @@ export interface IdentifySchema {
|
||||
capabilities?: number;
|
||||
client_state?: {
|
||||
guild_hashes?: any;
|
||||
highest_last_message_id?: string;
|
||||
highest_last_message_id?: string | number;
|
||||
read_state_version?: number;
|
||||
user_guild_settings_version?: number;
|
||||
user_settings_version?: number;
|
||||
|
Loading…
Reference in New Issue
Block a user