Fix: Crash when hitting room from unified search/browse directory

#1342
This commit is contained in:
manuroe
2017-06-22 11:09:17 +02:00
parent a6bc98ab43
commit 2f47def90f
+1 -1
View File
@@ -2602,7 +2602,7 @@
[self checkReadMarkerVisibility];
// Switch back to the live mode when the user scrolls to the bottom of the non live timeline.
if (!self.roomDataSource.isLive)
if (!self.roomDataSource.isLive && ![self isRoomPreview])
{
CGFloat contentBottomPosY = self.bubblesTableView.contentOffset.y + self.bubblesTableView.frame.size.height - self.bubblesTableView.contentInset.bottom;
if (contentBottomPosY >= self.bubblesTableView.contentSize.height && ![self.roomDataSource.timeline canPaginate:MXTimelineDirectionForwards])