Bug Fix - Read marker: no "Jump to first message" on landscape mode for devices with left and right panels

RoomViewController: Override exposed method used to reload the bubbles table.

vector-im/riot-ios#1291
This commit is contained in:
Giom Foret 2017-06-15 10:28:57 +02:00
parent 95ec08164c
commit bf06ed3aef

View file

@ -719,6 +719,16 @@
#pragma mark - Override MXKRoomViewController
- (BOOL)reloadBubblesTable:(BOOL)useBottomAnchor
{
BOOL hasScrolledToTheBottom = [super reloadBubblesTable:useBottomAnchor];
[self refreshActivitiesViewDisplay];
[self refreshJumpToLastUnreadBannerDisplay];
return hasScrolledToTheBottom;
}
- (void)onMatrixSessionChange
{
[super onMatrixSessionChange];
@ -1609,14 +1619,6 @@
#pragma mark - MXKDataSource delegate
- (void)dataSource:(MXKDataSource *)dataSource didCellChange:(id)changes
{
[super dataSource:dataSource didCellChange:changes];
[self refreshActivitiesViewDisplay];
[self refreshJumpToLastUnreadBannerDisplay];
}
- (void)dataSource:(MXKDataSource *)dataSource didRecognizeAction:(NSString *)actionIdentifier inCell:(id<MXKCellRendering>)cell userInfo:(NSDictionary *)userInfo
{
// Handle here user actions on bubbles for Vector app