mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Clear selection after forward in info shared media.
This commit is contained in:
@@ -157,8 +157,12 @@ void TopBarOverride::performForward() {
|
||||
_correctionCancelRequests.fire({});
|
||||
return;
|
||||
}
|
||||
auto callback = [items = std::move(items)](not_null<PeerData*> peer) {
|
||||
auto callback = [items = std::move(items), that = weak(this)](
|
||||
not_null<PeerData*> peer) {
|
||||
App::main()->setForwardDraft(peer->id, items);
|
||||
if (that) {
|
||||
that->_correctionCancelRequests.fire({});
|
||||
}
|
||||
};
|
||||
Ui::show(Box<PeerListBox>(
|
||||
std::make_unique<ChooseRecipientBoxController>(std::move(callback)),
|
||||
|
Reference in New Issue
Block a user