mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 14:16:59 +02:00
Feature/2897 restricted user
This commit is contained in:
committed by
Arnfried Griesert
parent
129ef7fc06
commit
24a4feae96
@@ -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