From 6d38f84b17bcb7b517b86013721bbfe94b18faa7 Mon Sep 17 00:00:00 2001 From: Nicolas Buquet Date: Wed, 4 Oct 2023 12:11:51 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20:=20sortir=20du=20mode=20"edition=20de=20?= =?UTF-8?q?salon"=20apr=C3=A8s=20l'usage=20d'une=20option=20rapide=20(swip?= =?UTF-8?q?e)=20sur=20la=20liste=20g=C3=A9n=C3=A9rale=20des=20salons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Riot/Modules/Common/Recents/RecentsViewController.m | 4 ++++ changelog.d/867.bugfix | 1 + 2 files changed, 5 insertions(+) create mode 100644 changelog.d/867.bugfix diff --git a/Riot/Modules/Common/Recents/RecentsViewController.m b/Riot/Modules/Common/Recents/RecentsViewController.m index 8078e48fc..2ab3e357a 100644 --- a/Riot/Modules/Common/Recents/RecentsViewController.m +++ b/Riot/Modules/Common/Recents/RecentsViewController.m @@ -1218,6 +1218,7 @@ - (nullable UISwipeActionsConfiguration *)tableView:(UITableView *)tableView tra [self muteEditedRoomNotifications:!isMuted]; } + self->editedRoomId = nil; // Tchap: Reset editedRoomId else UI content does not refresh anymore. completionHandler(YES); }]; @@ -1258,6 +1259,9 @@ - (nullable UISwipeActionsConfiguration *)tableView:(UITableView *)tableView tra handler:^(UIContextualAction * _Nonnull action, __kindof UIView * _Nonnull sourceView, void (^ _Nonnull completionHandler)(BOOL)) { NSString *favouriteTag = isFavourite ? nil : kMXRoomTagFavourite; [self updateEditedRoomTag:favouriteTag]; + + self->editedRoomId = nil; // Tchap: Reset editedRoomId else UI content does not refresh anymore. + completionHandler(YES); }]; favouriteAction.backgroundColor = actionBackgroundColor; diff --git a/changelog.d/867.bugfix b/changelog.d/867.bugfix new file mode 100644 index 000000000..d91a9e5cb --- /dev/null +++ b/changelog.d/867.bugfix @@ -0,0 +1 @@ +La gestion des favoris depuis la liste générale des salons ne fonctionne pas