kopia lustrzana https://github.com/cheeaun/phanpy
Auto-set new notification as false
It means it's read from other tabs or devices So, so cool.pull/272/head
rodzic
a222828306
commit
0d4303861a
|
@ -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;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue