From 5d8dfc2f1bb08429bea1c6ea5ffb23647923d0b6 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Fri, 14 Jan 2022 13:26:14 +0200 Subject: [PATCH] Fix vector-im/element-ios/issues/4208 - Home screen doesn't update properly on theme changes. --- Riot/Modules/Common/Recents/RecentsViewController.m | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Riot/Modules/Common/Recents/RecentsViewController.m b/Riot/Modules/Common/Recents/RecentsViewController.m index 0b8e9efbb8..f950b2b23c 100644 --- a/Riot/Modules/Common/Recents/RecentsViewController.m +++ b/Riot/Modules/Common/Recents/RecentsViewController.m @@ -193,11 +193,8 @@ - (void)userInterfaceThemeDidChange [ThemeService.shared.theme applyStyleOnSearchBar:tableSearchBar]; [ThemeService.shared.theme applyStyleOnSearchBar:self.recentsSearchBar]; - if (self.recentsTableView.dataSource) - { - // Force table refresh - [self cancelEditionMode:YES]; - } + // Force table refresh + [self.recentsTableView reloadData]; [self.emptyView updateWithTheme:ThemeService.shared.theme];