IOS-1542 Inform delegate on success as well, unless crashing. IOS-1542
authorDirk Zimmermann <dz@pep.security>
Thu, 25 Apr 2019 16:25:40 +0200
branchIOS-1542
changeset 8382855ff0a20d53
parent 8381 907e287ead66
child 8383 ff79069bcf29
IOS-1542 Inform delegate on success as well, unless crashing.
pEpForiOS/UI/Settings/Setting/AccountSettings/ViewModel/AccountSettingsViewModel.swift
     1.1 --- a/pEpForiOS/UI/Settings/Setting/AccountSettings/ViewModel/AccountSettingsViewModel.swift	Thu Apr 25 16:25:40 2019 +0200
     1.2 +++ b/pEpForiOS/UI/Settings/Setting/AccountSettings/ViewModel/AccountSettingsViewModel.swift	Thu Apr 25 16:25:40 2019 +0200
     1.3 @@ -206,6 +206,7 @@
     1.4          case .success(()):
     1.5              do {
     1.6                  try verifiableAccount?.save()
     1.7 +                delegate?.didVerify(result: .ok, accountInput: verifiableAccount)
     1.8              } catch {
     1.9                  Logger.frontendLogger.log(error: error)
    1.10                  Logger.frontendLogger.errorAndCrash("Unexpected error on saving the account")