pEpForiOS/UI/Settings/Setting/AccountSettings/ViewModel/AccountSettingsViewModel.swift
branchIOS-1542
changeset 8382 855ff0a20d53
parent 8381 907e287ead66
child 8383 ff79069bcf29
equal deleted inserted replaced
8381:907e287ead66 8382:855ff0a20d53
   204     public func didEndVerification(result: Result<Void, Error>) {
   204     public func didEndVerification(result: Result<Void, Error>) {
   205         switch result {
   205         switch result {
   206         case .success(()):
   206         case .success(()):
   207             do {
   207             do {
   208                 try verifiableAccount?.save()
   208                 try verifiableAccount?.save()
       
   209                 delegate?.didVerify(result: .ok, accountInput: verifiableAccount)
   209             } catch {
   210             } catch {
   210                 Logger.frontendLogger.log(error: error)
   211                 Logger.frontendLogger.log(error: error)
   211                 Logger.frontendLogger.errorAndCrash("Unexpected error on saving the account")
   212                 Logger.frontendLogger.errorAndCrash("Unexpected error on saving the account")
   212             }
   213             }
   213         case .failure(let error):
   214         case .failure(let error):