1
0
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:
Madeline 2022-07-10 21:58:13 +10:00
commit 90e0fc66c8
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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;