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, UserListJoinings, UserLists } from '../../../../models';
import shouldMuteThisNote from '../../../../misc/should-mute-this-note';
import { isMutedUserRelated } from '../../../../misc/is-muted-user-related';
import { User } from '../../../../models/entities/user';
import { PackedNote } from '../../../../models/repositories/note';
@ -73,7 +73,7 @@ export default class extends Channel {
}
// 流れてきたNoteがミュートしているユーザーが関わるものだったら無視する
if (shouldMuteThisNote(note, this.muting)) return;
if (isMutedUserRelated(note, this.muting)) return;
this.send('note', note);
}