Skip to content

Commit 497120e

Browse files
author
JagCesar
committed
Post notification after status has changed
1 parent ec6a50a commit 497120e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Sources/CurrentUser.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ public class CurrentUser {
8686
@objc func statusChanged() {
8787
userIdentifier = nil
8888
status = .NotDetermined
89-
currentStatus(forcedReload: true) { _ in
90-
89+
currentStatus(forcedReload: true) { _, _ in
90+
NotificationCenter.default.post(name: CurrentUser.statusChangedNotification, object: nil)
9191
}
92-
NotificationCenter.default.post(name: CurrentUser.statusChangedNotification, object: nil)
9392
}
9493
}

0 commit comments

Comments
 (0)