mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-23 00:29:22 +09:00
if (notesToRead.size > 0)
This commit is contained in:
parent
6b45b814c9
commit
6be1d986cd
@ -237,7 +237,9 @@ export class NotificationEntityService implements OnModuleInit {
|
||||
}
|
||||
return acc;
|
||||
}, new Set<Packed<'Note'>>());
|
||||
trackPromise(this.noteReadService.read(meId, Array.from(notesToRead)));
|
||||
if (notesToRead.size > 0) {
|
||||
trackPromise(this.noteReadService.read(meId, Array.from(notesToRead)));
|
||||
}
|
||||
} catch (e) {
|
||||
// console.error('error thrown by NoteReadService.read', e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user