Don't try to ensure local profile commitment until we're onboarded.

This commit is contained in:
Matthew Chen 2020-02-26 13:44:40 -03:00
parent 8a3bb26206
commit 96d4c39f0e

View File

@ -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."))
}