Auto-set new notification as false

It means it's read from other tabs or devices

So, so cool.
This commit is contained in:
Lim Chee Aun 2023-10-21 18:49:39 +08:00
parent a222828306
commit 0d4303861a

View file

@ -32,9 +32,7 @@ export default memo(function BackgroundService({ isLoggedIn }) {
lastReadId = markers?.notifications?.lastReadId;
} catch (e) {}
if (lastReadId) {
if (notifications[0].id !== lastReadId) {
states.notificationsShowNew = true;
}
states.notificationsShowNew = notifications[0].id !== lastReadId;
} else {
states.notificationsShowNew = true;
}