MESSENGER-5716 change error message federated invite

This commit is contained in:
JanNiklas Grabowski
2024-06-06 16:05:57 +02:00
parent b1759a5607
commit 75bc28eb6c
4 changed files with 14 additions and 0 deletions
@@ -993,6 +993,12 @@ static const CGFloat kCellVisibilityMinimumHeight = 8.0;
msg = [VectorL10n roomErrorJoinFailedEmptyRoom];
}
// bwi: #5716 show custom error message when the federation was disabled after the user has been invited to a federated room
if ([msg isEqualToString:@"Server is banned from room"])
{
msg = BWIL10n.roomErrorJoinFailedFederationDisabledMessage;
}
MXWeakify(self);
[self->currentAlert dismissViewControllerAnimated:NO completion:nil];