Skip to content

Commit

Permalink
Merge pull request #7692 from vector-im/alfogrillo/fix-rte-crash
Browse files Browse the repository at this point in the history
Fix new dm crash with RTE is enabled
  • Loading branch information
Alfonso Grillo authored Oct 4, 2023
2 parents 0c5e3df + df21fa7 commit 7010a69
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 @@ -3121,15 +3121,16 @@ - (void)displayRoomPreview:(RoomPreviewData *)previewData

- (void)displayNewDirectChatWithTargetUser:(nonnull MXUser*)directChatTargetUser session:(nonnull MXSession*)session
{
// `[displayRoom:]` may require the session, setting it here before calling it
[self addMatrixSession:session];

// Release existing room data source or preview
[self displayRoom:nil];

self.directChatTargetUser = directChatTargetUser;

self.eventsAcknowledgementEnabled = NO;

[self addMatrixSession:session];


[self refreshRoomTitle];
[self refreshRoomInputToolbar];
}
Expand Down

0 comments on commit 7010a69

Please sign in to comment.