Skip to content

Commit

Permalink
Only reload view when done loading in list notis
Browse files Browse the repository at this point in the history
  • Loading branch information
manhlx3006 committed Dec 26, 2019
1 parent 332d14f commit 3cbf3ac
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,6 @@ class KNListNotificationViewController: KNBaseViewController {
errorMessage = err
} else {
notifications.append(contentsOf: notis)
if (id + 1) % 2 == 0 {
KNNotificationStorage.shared.updateNotificationsFromServer(notifications)
self?.listNotificationsDidUpdate(nil)
}
}
group.leave()
}
Expand Down

0 comments on commit 3cbf3ac

Please sign in to comment.