From 3f4335ecb4314106922f34ab0dcfb6de45513f03 Mon Sep 17 00:00:00 2001 From: murdle Date: Wed, 17 Dec 2025 21:24:59 +0200 Subject: [PATCH] fix mobile bugs --- src/gateway/opcodes/Identify.ts | 2 ++ src/gateway/opcodes/LazyRequest.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts index a33b212b..712460b2 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts @@ -516,6 +516,8 @@ export async function onIdentify(this: WebSocket, data: Payload) { }); const remapReadStateIdsTime = taskSw.getElapsedAndReset(); + (user.settings as any).guild_positions = []; + const d: ReadyEventData = { v: 9, application: application ? { id: application.id, flags: application.flags } : undefined, diff --git a/src/gateway/opcodes/LazyRequest.ts b/src/gateway/opcodes/LazyRequest.ts index 63b3f55c..1648b931 100644 --- a/src/gateway/opcodes/LazyRequest.ts +++ b/src/gateway/opcodes/LazyRequest.ts @@ -249,7 +249,7 @@ export async function onLazyRequest(this: WebSocket, { d }: Payload) { if (!channels) return; } - if (!channels) throw new Error("Must provide channel ranges"); + if (!channels) /*throw new Error("Must provide channel ranges")*/ return; const channel_id = Object.keys(channels || {})[0]; if (!channel_id) return;