notificationService: emit update only after change applied

This commit is contained in:
Jesse Chan
2020-11-10 20:40:57 +08:00
parent 00504393f6
commit 971a54390f

View File

@@ -47,11 +47,10 @@ class NotificationService extends BaseService<NotificationServiceEvents> {
}
this.count = {read: 0, total: 0, unread: 0};
this.emitUpdate();
callback();
});
this.emitUpdate();
}
countNotifications() {