refactor: Rename function

This commit is contained in:
syuilo 2020-07-28 09:36:43 +09:00
parent 0efa969a15
commit a8adc46f3b
9 changed files with 17 additions and 17 deletions

View file

@ -1,7 +1,7 @@
import autobind from 'autobind-decorator';
import Channel from '../channel';
import { Notes } from '../../../../models';
import shouldMuteThisNote from '../../../../misc/should-mute-this-note';
import { isMutedUserRelated } from '../../../../misc/is-muted-user-related';
export default class extends Channel {
public readonly chName = 'antenna';
@ -25,7 +25,7 @@ export default class extends Channel {
const note = await Notes.pack(body.id, this.user, { detail: true });
// 流れてきたNoteがミュートしているユーザーが関わるものだったら無視する
if (shouldMuteThisNote(note, this.muting)) return;
if (isMutedUserRelated(note, this.muting)) return;
this.send('note', note);
} else {