Skip to content

Commit

Permalink
Fix user suggestions not showing up when re-entering a room.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanceriu committed Mar 21, 2022
1 parent 6fd2f2c commit c69f799
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Riot/Modules/Room/RoomViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ - (void)viewDidLoad
[self registerURLPreviewNotifications];

[self setupActions];

[self setupUserSuggestionViewIfNeeded];
}

- (void)userInterfaceThemeDidChange
Expand Down Expand Up @@ -1045,7 +1047,7 @@ - (void)displayRoom:(MXKRoomDataSource *)dataSource
room:dataSource.room];
_userSuggestionCoordinator.delegate = self;

[self setupUserSuggestionView];
[self setupUserSuggestionViewIfNeeded];
}

- (void)onRoomDataSourceReady
Expand Down Expand Up @@ -2370,10 +2372,9 @@ - (BOOL)handleUniversalLinkWithParameters:(UniversalLinkParameters*)parameters
}
}

- (void)setupUserSuggestionView
- (void)setupUserSuggestionViewIfNeeded
{
if(!self.isViewLoaded) {
MXLogError(@"Failed setting up user suggestions. View not loaded.");
return;
}

Expand Down

0 comments on commit c69f799

Please sign in to comment.