Feature/2897 restricted user

This commit is contained in:
Frank Rotermund
2022-03-22 14:37:58 +00:00
committed by Arnfried Griesert
parent 472dbded4e
commit 4b1ca0ff7f
16 changed files with 183 additions and 16 deletions
@@ -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];
}
}
}