fix mobile bugs

This commit is contained in:
murdle 2025-12-17 21:24:59 +02:00
parent 1e61ccb19a
commit 3f4335ecb4
2 changed files with 3 additions and 1 deletions

View File

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

View File

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