mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2025-01-18 11:32:56 +09:00
Fix bug
This commit is contained in:
parent
65b0b8c42c
commit
1154172acd
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ class Publisher {
|
||||
|
||||
private publish = (channel: string, type: string, value?: any): void => {
|
||||
const message = type == null ? value : value == null ?
|
||||
{ type: type } :
|
||||
{ type: type, body: null } :
|
||||
{ type: type, body: value };
|
||||
|
||||
this.ev.emit(channel, message);
|
||||
|
Loading…
Reference in New Issue
Block a user