Don't try to ensure local profile commitment until we're onboarded.
This commit is contained in:
parent
8a3bb26206
commit
96d4c39f0e
@ -1455,7 +1455,9 @@ public class GroupManager: NSObject {
|
||||
}
|
||||
|
||||
public static func ensureLocalProfileHasCommitmentIfNecessary() -> Promise<Void> {
|
||||
|
||||
guard tsAccountManager.isOnboarded() else {
|
||||
return Promise.value(())
|
||||
}
|
||||
guard let localAddress = self.tsAccountManager.localAddress else {
|
||||
return Promise(error: OWSAssertionError("Missing localAddress."))
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user