Room preview on a long press should not update the read receipt (#6027)

- Done
This commit is contained in:
Gil Eluard
2022-04-14 10:30:51 +02:00
committed by GitHub
parent f60689d3c8
commit f62b876f54
9 changed files with 92 additions and 13 deletions
+9
View File
@@ -5569,6 +5569,15 @@ static CGSize kThreadListBarButtonItemImageSize;
continueBlock(threadDataSource, YES);
}];
}
else if (self.isContextPreview)
{
[RoomPreviewDataSource loadRoomDataSourceWithRoomId:self.roomDataSource.roomId
andMatrixSession:self.mainSession
onComplete:^(RoomPreviewDataSource *roomDataSource)
{
continueBlock(roomDataSource, YES);
}];
}
else
{
// Switch back to the room live timeline managed by MXKRoomDataSourceManager