Fixes #4746 - It is very easy to make duplicate rooms

This commit is contained in:
Stefan Ceriu
2021-08-26 16:55:56 +03:00
committed by Stefan Ceriu
parent dc2e3ca367
commit 4c60dc9a8e
6 changed files with 38 additions and 33 deletions
@@ -67,27 +67,26 @@ final class EncryptionKeysExportPresenter: NSObject {
toExportKeysToFile: self.keyExportFileURL,
onLoading: { [weak self] (loading) in
guard let sself = self else {
guard let self = self else {
return
}
if loading {
sself.activityViewPresenter.removeCurrentActivityIndicator(animated: false)
sself.activityViewPresenter.presentActivityIndicator(on: viewController.view, animated: true)
self.activityViewPresenter.presentActivityIndicator(on: viewController.view, animated: true)
} else {
sself.activityViewPresenter.removeCurrentActivityIndicator(animated: true)
self.activityViewPresenter.removeCurrentActivityIndicator(animated: true)
}
}, onComplete: { [weak self] (success) in
guard let sself = self else {
guard let self = self else {
return
}
guard success else {
sself.encryptionKeysExportView = nil
self.encryptionKeysExportView = nil
return
}
sself.presentInteractionDocumentController()
self.presentInteractionDocumentController()
})
self.encryptionKeysExportView = keysExportView