Skip to content

Commit

Permalink
Merge pull request #886 from tchapgouv/867-la-gestion-des-favoris-dep…
Browse files Browse the repository at this point in the history
…uis-la-liste-generale-des-salons-ne-fonctionne-pas

Fix : sortir du mode "edition de salon" après l'usage d'une option ra…
  • Loading branch information
NicolasBuquet authored Oct 5, 2023
2 parents b4d5879 + 6d38f84 commit 4b46dd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Riot/Modules/Common/Recents/RecentsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}];
Expand Down Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions changelog.d/867.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
La gestion des favoris depuis la liste générale des salons ne fonctionne pas

0 comments on commit 4b46dd6

Please sign in to comment.