mirror of
https://github.com/spacebarchat/server.git
synced 2026-12-03 13:44:13 +00:00
gateway should not crash for clients that send Op 37 with missing channel ranges, instead ignore
This commit is contained in:
1 parent
3d7aa63681
commit
e843d499ec
1 file changed
+1
-1
@@ -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