Room details: On bunch of incoming live events, scroll up to the last event of this bunch

This commit is contained in:
manuroe
2014-12-09 17:14:00 +01:00
parent 48c18b210a
commit 7518f07fb5
@@ -398,7 +398,11 @@ NSString *const kCmdResetUserPowerLevel = @"/deop";
}
if (shouldScrollToBottom) {
[self scrollToBottomAnimated:YES];
// Delay the scrolling.
// If there is a bunch of incoming events, scroll once for all of them
dispatch_async(dispatch_get_main_queue(), ^{
[self scrollToBottomAnimated:YES];
});
}
}];