Skip to content

Commit

Permalink
Fix : sortir du mode "edition de salon" après l'usage d'une option ra…
Browse files Browse the repository at this point in the history
…pide (swipe) sur la liste générale des salons
  • Loading branch information
NicolasBuquet committed Oct 4, 2023
1 parent da37f78 commit 6d38f84
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 6d38f84

Please sign in to comment.