Revert "Bug Fix - Home: tapping on an unread room on home page takes you to the wrong room"

This reverts commit 06a7712d46f348cdd287d73eda40632fc5419531.
This commit is contained in:
Giom Foret
2017-06-22 14:43:21 +02:00
parent f4471cd7b4
commit cfae3b5f71
2 changed files with 4 additions and 9 deletions
+2 -4
View File
@@ -240,11 +240,9 @@
{
if (self.delegate)
{
RoomCollectionViewCell *roomCollectionViewCell = (RoomCollectionViewCell*)[collectionView cellForItemAtIndexPath:indexPath];
id<MXKRecentCellDataStoring> cellData = [recentsDataSource cellDataAtIndexPath:[NSIndexPath indexPathForRow:indexPath.item inSection:collectionView.tag]];
id<MXKRecentCellDataStoring> renderedCellData = (id<MXKRecentCellDataStoring>)roomCollectionViewCell.renderedCellData;
[self.delegate recentListViewController:self didSelectRoom:renderedCellData.roomSummary.roomId inMatrixSession:renderedCellData.roomSummary.room.mxSession];
[self.delegate recentListViewController:self didSelectRoom:cellData.roomSummary.roomId inMatrixSession:cellData.roomSummary.room.mxSession];
}
// Hide the keyboard when user select a room