mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 03:20:50 +02:00
Feature/2897 restricted user
This commit is contained in:
committed by
Arnfried Griesert
parent
472dbded4e
commit
4b1ca0ff7f
@@ -859,8 +859,12 @@ NSString *const RecentsViewControllerDataReadyNotification = @"RecentsViewContro
|
||||
// Sanity check
|
||||
if (self.parentViewController && [self.parentViewController isKindOfClass:UnifiedSearchViewController.class])
|
||||
{
|
||||
// Show the directory screen
|
||||
[((UnifiedSearchViewController*)self.parentViewController) showPublicRoomsDirectory];
|
||||
AccountRestrictionService *service = [[AccountRestrictionService alloc] initWithMxSession:self.mainSession];
|
||||
|
||||
if (![service isRoomAccessRestriction]) {
|
||||
// Show the directory screen
|
||||
[((UnifiedSearchViewController*)self.parentViewController) showPublicRoomsDirectory];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user