refresh when empty (#1354)

This commit is contained in:
Ansh
2023-08-31 16:45:18 -07:00
committed by GitHub
parent f16cc9537a
commit 4cd3ddecad
+7
View File
@@ -405,6 +405,13 @@ export class NotificationsFeedModel {
} finally {
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()
}
})
/**