remove no longer needed "as PackedUser/PackedNote"

This commit is contained in:
tamaina
2021-09-06 03:32:52 +09:00
parent c86ac1c6ec
commit 93fd76f841
6 changed files with 9 additions and 11 deletions

View File

@@ -43,7 +43,7 @@ export default class extends Channel {
// 関係ない返信は除外
if (note.reply) {
const reply = note.reply as PackedNote;
const reply = note.reply;
// 「チャンネル接続主への返信」でもなければ、「チャンネル接続主が行った返信」でもなければ、「投稿者の投稿者自身への返信」でもない場合
if (reply.userId !== this.user!.id && note.userId !== this.user!.id && reply.userId !== note.userId) return;
}