mirror of
https://github.com/spacebarchat/server.git
synced 2026-12-03 05:08:05 +00:00
🐛 fix event listener
This commit is contained in:
1 parent
f9187a6c0f
commit
5ff018a55f
1 file changed
+4
-2
@@ -153,9 +153,11 @@ async function consume(this: WebSocket, opts: EventOpts) {
|
||||
!permission
|
||||
.overwriteChannel(data.permission_overwrites)
|
||||
.has("VIEW_CHANNEL")
|
||||
)
|
||||
) {
|
||||
return;
|
||||
// No break needed here, we need to call the listenEvent function below
|
||||
}
|
||||
this.events[id] = await listenEvent(id, consumer, listenOpts);
|
||||
break;
|
||||
case "RELATIONSHIP_ADD":
|
||||
this.events[data.user.id] = await listenEvent(
|
||||
data.user.id,
|
||||
|
||||
Reference in new issue
Block a user