refresh when empty (#1354)
parent
f16cc9537a
commit
4cd3ddecad
|
@ -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()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue