also cherry-pick?
This commit is contained in:
parent
f59cd5afa3
commit
6c108d7704
1 changed files with 2 additions and 1 deletions
|
|
@ -66,7 +66,8 @@ const fetchAndUpdate = ({ store, credentials, older = false, sinceId }) => {
|
|||
const unreadNotifsIds = notifications
|
||||
.filter((n) => !n.seen)
|
||||
.map((n) => n.id)
|
||||
if (readNotifsIds.length > 0 && readNotifsIds.length > 0) {
|
||||
|
||||
if (readNotifsIds.length > 0 && unreadNotifsIds.length > 0) {
|
||||
const minId = Math.min(...unreadNotifsIds) // Oldest known unread notification
|
||||
if (minId !== Infinity) {
|
||||
args.sinceId = null // Don't use since_id since it sorta conflicts with min_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue