Privacy: If there is no IS, we cannot invite people by email

#2672

Display a message for MXRestClientErrorMissingIdentityServer errors
This commit is contained in:
manuroe
2019-09-17 10:06:10 +02:00
parent f03b4bbd0e
commit ae85f58ba4
4 changed files with 29 additions and 3 deletions
@@ -1646,8 +1646,18 @@
[self removePendingActionMask];
NSLog(@"[RoomParticipantsVC] Invite be email %@ failed", participantId);
// Alert user
[[AppDelegate theDelegate] showErrorAsAlert:error];
if ([error.domain isEqualToString:kMXRestClientErrorDomain]
&& error.code == MXRestClientErrorMissingIdentityServer)
{
NSString *message = [NSBundle mxk_localizedStringForKey:@"error_no_identity_server"];
[[AppDelegate theDelegate] showAlertWithTitle:message message:nil];
}
else
{
[[AppDelegate theDelegate] showErrorAsAlert:error];
}
}];
}
else //if ([MXTools isMatrixUserIdentifier:participantId])