Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 8c4e734

Browse files
authored
Skip loading status when inbox empty (#1731)
1 parent 380c1fa commit 8c4e734

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Classes/Notifications/NotificationClient.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ final class NotificationClient {
8787
page: Int?,
8888
completion: @escaping (Result<([NotificationViewModel], Int?)>) -> Void
8989
) {
90+
guard notifications.count > 0 else {
91+
completion(.success((notifications, page)))
92+
return
93+
}
9094

9195
let content = "state comments{totalCount}"
9296
let notificationQueries: String = notifications.compactMap {

0 commit comments

Comments
 (0)