refresh when empty (#1354)

zio/stable
Ansh 2023-08-31 16:45:18 -07:00 committed by GitHub
parent f16cc9537a
commit 4cd3ddecad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -405,6 +405,13 @@ export class NotificationsFeedModel {
} finally { } finally {
this.lock.release() this.lock.release()
} }
// if there are no notifications, we should refresh the list
// this will only run for new users who have no notifications
// NOTE: needs to be after the lock is released
if (this.isEmpty) {
this.refresh()
}
}) })
/** /**