Commit 2ac2ac26 authored by Luna's avatar Luna 📟

gateway.websocket: fix permission object fetch

parent 8a3e55b5
Pipeline #37469503 passed with stage
in 6 minutes and 11 seconds
......@@ -795,7 +795,7 @@ class GatewayWebsocket:
perms = await get_permissions(
self.state.user_id, chan_id, storage=self.storage)
if not perms.read_messages:
if not perms.bits.read_messages:
# ignore requests to unknown channels
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment