diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-10-08 01:56:36 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-10-08 01:56:36 +0900 |
| commit | 1003fd393e7b8b1c0b686e4689e95d935bf4419b (patch) | |
| tree | 3734b5e1957dec269ce8e2c72ffc65ec7f18d6a9 /src/server/api/stream/channels | |
| parent | Clean up (diff) | |
| download | sharkey-1003fd393e7b8b1c0b686e4689e95d935bf4419b.tar.gz sharkey-1003fd393e7b8b1c0b686e4689e95d935bf4419b.tar.bz2 sharkey-1003fd393e7b8b1c0b686e4689e95d935bf4419b.zip | |
Fix bug
Diffstat (limited to 'src/server/api/stream/channels')
| -rw-r--r-- | src/server/api/stream/channels/main.ts | 6 |
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); }); } } |