summaryrefslogtreecommitdiff
path: root/src/server/api
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-10-08 01:56:36 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-10-08 01:56:36 +0900
commit1003fd393e7b8b1c0b686e4689e95d935bf4419b (patch)
tree3734b5e1957dec269ce8e2c72ffc65ec7f18d6a9 /src/server/api
parentClean up (diff)
downloadsharkey-1003fd393e7b8b1c0b686e4689e95d935bf4419b.tar.gz
sharkey-1003fd393e7b8b1c0b686e4689e95d935bf4419b.tar.bz2
sharkey-1003fd393e7b8b1c0b686e4689e95d935bf4419b.zip
Fix bug
Diffstat (limited to 'src/server/api')
-rw-r--r--src/server/api/stream/channels/main.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/api/stream/channels/main.ts b/src/server/api/stream/channels/main.ts
index a6c5b12760..fd0984c833 100644
--- a/src/server/api/stream/channels/main.ts
+++ b/src/server/api/stream/channels/main.ts
@@ -14,12 +14,12 @@ export default class extends Channel {
switch (type) {
case 'notification': {
- if (!mutedUserIds.includes(body.userId)) {
- this.send('notification', body);
- }
+ if (mutedUserIds.includes(body.userId)) return;
break;
}
}
+
+ this.send(type, body);
});
}
}