mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-25 01:08:50 +01:00
Auto-set new notification as false
It means it's read from other tabs or devices So, so cool.
This commit is contained in:
parent
a222828306
commit
0d4303861a
1 changed files with 1 additions and 3 deletions
|
@ -32,9 +32,7 @@ export default memo(function BackgroundService({ isLoggedIn }) {
|
||||||
lastReadId = markers?.notifications?.lastReadId;
|
lastReadId = markers?.notifications?.lastReadId;
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
if (lastReadId) {
|
if (lastReadId) {
|
||||||
if (notifications[0].id !== lastReadId) {
|
states.notificationsShowNew = notifications[0].id !== lastReadId;
|
||||||
states.notificationsShowNew = true;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
states.notificationsShowNew = true;
|
states.notificationsShowNew = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue