mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-30 13:55:39 +00:00
gateway should not crash for clients that send Op 37 with missing channel ranges, instead ignore
This commit is contained in:
@@ -212,7 +212,7 @@ export async function onLazyRequest(this: WebSocket, { d }: Payload) {
|
||||
if (!channels) return;
|
||||
}
|
||||
|
||||
if (!channels) throw new Error("Must provide channel ranges");
|
||||
if (!channels) return;
|
||||
|
||||
const channel_id = Object.keys(channels || {})[0];
|
||||
if (!channel_id) return;
|
||||
|
||||
Reference in New Issue
Block a user