fixed a crash when a new DM room is created (#7232)

Signed-off-by: Nicolas Mauri <nicolasm@element.io>
This commit is contained in:
Nicolas Mauri
2023-01-05 10:47:01 +01:00
parent 9b909c9e60
commit 1d96d94e65
3 changed files with 5 additions and 3 deletions
+3 -2
View File
@@ -1064,6 +1064,9 @@ static CGSize kThreadListBarButtonItemImageSize;
// Set room title view
[self refreshRoomTitle];
// Stop any pending voice broadcast if needed
[self stopUncompletedVoiceBroadcastIfNeeded];
}
else
{
@@ -1082,8 +1085,6 @@ static CGSize kThreadListBarButtonItemImageSize;
[self setupUserSuggestionViewIfNeeded];
[self updateTopBanners];
[self stopUncompletedVoiceBroadcastIfNeeded];
}
- (void)onRoomDataSourceReady