Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix : sortir du mode "edition de salon" après l'usage d'une option ra… #886

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading