From 4cd3ddecadfaad1e1711b916760590cd18fba675 Mon Sep 17 00:00:00 2001 From: Ansh Date: Thu, 31 Aug 2023 16:45:18 -0700 Subject: refresh when empty (#1354) --- src/state/models/feeds/notifications.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/state/models/feeds/notifications.ts b/src/state/models/feeds/notifications.ts index a9836d38f..34f5d4add 100644 --- a/src/state/models/feeds/notifications.ts +++ b/src/state/models/feeds/notifications.ts @@ -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() + } }) /** -- cgit 1.4.1