mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 17:12:45 +02:00
MESSENGER-6019 fix permalink bugs
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user