mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-06 19:02:33 +01:00
🐛 fix event listener
This commit is contained in:
parent
c812026527
commit
bff6087c8b
@ -153,9 +153,11 @@ async function consume(this: WebSocket, opts: EventOpts) {
|
|||||||
!permission
|
!permission
|
||||||
.overwriteChannel(data.permission_overwrites)
|
.overwriteChannel(data.permission_overwrites)
|
||||||
.has("VIEW_CHANNEL")
|
.has("VIEW_CHANNEL")
|
||||||
)
|
) {
|
||||||
return;
|
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":
|
case "RELATIONSHIP_ADD":
|
||||||
this.events[data.user.id] = await listenEvent(
|
this.events[data.user.id] = await listenEvent(
|
||||||
data.user.id,
|
data.user.id,
|
||||||
|
Loading…
Reference in New Issue
Block a user