MESSENGER-6019 fix permalink bugs

This commit is contained in:
JanNiklas Grabowski
2024-05-28 16:56:48 +02:00
parent 6ccae94d16
commit 03c79fc8eb
6 changed files with 51 additions and 0 deletions
+14
View File
@@ -833,6 +833,20 @@ static const CGFloat kCellVisibilityMinimumHeight = 8.0;
errorTitle = [VectorL10n roomErrorTimelineEventNotFoundTitle];
errorMessage = [VectorL10n roomErrorTimelineEventNotFound];
}
// bwi: #6019 show error alert with custom german translation for M_FORBIDDEN error
else if ([mxError.errcode isEqualToString:kMXErrCodeStringForbidden])
{
errorTitle = [VectorL10n roomErrorCannotLoadTimeline];
if ([mxError.error isEqualToString:@"You don't have permission to access that event."])
{
errorMessage = [BWIL10n bwiErrorRoomHistoryNotAvailable];
}
else
{
errorMessage = mxError.error;
}
}
else
{
errorTitle = [VectorL10n roomErrorCannotLoadTimeline];