Skip to content

Commit

Permalink
Merge pull request #909 from tchapgouv/908-message-derreur-contextual…
Browse files Browse the repository at this point in the history
…ise-lors-de-lechec-dinvitation-dexterne-non-present-dans-lannuaire

Message d'erreur en FR lors de l'échec d'invitation dans un salon d'u…
  • Loading branch information
NicolasBuquet authored Oct 31, 2023
2 parents 82749fa + 2bdaecb commit b7327c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,14 @@ extension ContactsPickerViewModel: ContactsTableViewControllerDelegate {
if let error = response.error as NSError?, error.domain == kMXRestClientErrorDomain, error.code == MXRestClientErrorMissingIdentityServer {
self.coordinatorDelegate?.contactsPickerViewModel(self, inviteFailedWithError: nil)
AppDelegate.theDelegate().showAlert(withTitle: VectorL10n.errorInvite3pidWithNoIdentityServer, message: nil)
} else {
}
// Tchap: make error message clearer and in french when a member can't be invited to a room
else if let mxError = MXError(nsError: response.error),
mxError.errcode == kMXErrCodeStringForbidden,
let tchapErrorCannotInvite = MXError(errorCode: mxError.errcode, error: TchapL10n.roomInviteErrorActionForbidden, userInfo: mxError.userInfo) {
self.coordinatorDelegate?.contactsPickerViewModel(self, inviteFailedWithError: tchapErrorCannotInvite.createNSError())
}
else {
self.coordinatorDelegate?.contactsPickerViewModel(self, inviteFailedWithError: response.error)
}
}
Expand Down
1 change: 1 addition & 0 deletions changelog.d/908.change
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Message d'erreur en FR lors de l'échec d'invitation dans un salon d'un externe non présent dans l'annuaire

0 comments on commit b7327c7

Please sign in to comment.