From 977aad5f25caef36f13cc15ba6f4c9c6fc91be98 Mon Sep 17 00:00:00 2001 From: Giom Foret Date: Thu, 15 Jun 2017 10:28:57 +0200 Subject: [PATCH] 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 --- Riot/ViewController/RoomViewController.m | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Riot/ViewController/RoomViewController.m b/Riot/ViewController/RoomViewController.m index a59e530e8..d6e6a4a20 100644 --- a/Riot/ViewController/RoomViewController.m +++ b/Riot/ViewController/RoomViewController.m @@ -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)cell userInfo:(NSDictionary *)userInfo { // Handle here user actions on bubbles for Vector app