if (notesToRead.size > 0)

This commit is contained in:
tamaina 2024-02-21 18:45:24 +00:00
parent 6b45b814c9
commit 6be1d986cd

View file

@ -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);
}