Skip to content

Commit

Permalink
Message d'erreur en FR lors de l'échec d'invitation dans un salon d'u…
Browse files Browse the repository at this point in the history
…n externe non présent dans l'annuaire
  • Loading branch information
NicolasBuquet committed Oct 30, 2023
1 parent 82749fa commit 2bdaecb
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 2bdaecb

Please sign in to comment.