Room details: Be less restrictive when deciding to autoscroll on live events.

The user is now considered at the bottom of the list with an approx of 30px
This commit is contained in:
manuroe
2014-12-09 17:29:53 +01:00
parent 7518f07fb5
commit 2a6c0b1fec
@@ -309,6 +309,8 @@ NSString *const kCmdResetUserPowerLevel = @"/deop";
// We will scroll to bottom after updating tableView only if the most recent message is entirely visible.
CGFloat maxPositionY = self.messagesTableView.contentOffset.y + (self.messagesTableView.frame.size.height - self.messagesTableView.contentInset.bottom);
// Be a bit less retrictive, scroll even if the most recent message is partially hidden
maxPositionY += 30;
shouldScrollToBottom = (maxPositionY >= self.messagesTableView.contentSize.height);
// Update Table