Fix user suggestions not showing up when re-entering a room.

This commit is contained in:
Stefan Ceriu
2022-03-21 11:30:54 +02:00
committed by Stefan Ceriu
parent 5d6df50723
commit 821bdd90ab
2 changed files with 5 additions and 3 deletions
+4 -3
View File
@@ -400,6 +400,8 @@ static CGSize kThreadListBarButtonItemImageSize;
[self registerURLPreviewNotifications];
[self setupActions];
[self setupUserSuggestionViewIfNeeded];
}
- (void)userInterfaceThemeDidChange
@@ -1045,7 +1047,7 @@ static CGSize kThreadListBarButtonItemImageSize;
room:dataSource.room];
_userSuggestionCoordinator.delegate = self;
[self setupUserSuggestionView];
[self setupUserSuggestionViewIfNeeded];
}
- (void)onRoomDataSourceReady
@@ -2370,10 +2372,9 @@ static CGSize kThreadListBarButtonItemImageSize;
}
}
- (void)setupUserSuggestionView
- (void)setupUserSuggestionViewIfNeeded
{
if(!self.isViewLoaded) {
MXLogError(@"Failed setting up user suggestions. View not loaded.");
return;
}