mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Debug
This commit is contained in:
parent
e5615ea788
commit
0efb646bb7
|
@ -232,10 +232,14 @@ final class EditClosedGroupVC : BaseVC, UITableViewDataSource, UITableViewDelega
|
|||
let members = Set(self.members)
|
||||
let name = self.name
|
||||
try! Storage.writeSync { [weak self] transaction in
|
||||
ClosedGroupsProtocol.update(groupPublicKey, with: members, name: name, transaction: transaction).done {
|
||||
ClosedGroupsProtocol.update(groupPublicKey, with: members, name: name, transaction: transaction).done(on: DispatchQueue.main) {
|
||||
guard let self = self else { return }
|
||||
self.navigationController!.popViewController(animated: true)
|
||||
}.catch { error in
|
||||
if let conversationVC = self.navigationController!.viewControllers.first(where: { $0 is ConversationViewController }) {
|
||||
self.navigationController!.popToViewController(conversationVC, animated: true)
|
||||
} else {
|
||||
self.navigationController!.popViewController(animated: true)
|
||||
}
|
||||
}.catch(on: DispatchQueue.main) { error in
|
||||
guard let self = self else { return }
|
||||
self.showError(title: "Couldn't Update Group", message: "Please check your internet connection and try again.")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue