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