mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-09 16:47:26 +00:00
Clear selection after forward in info shared media.
This commit is contained in:
parent
f5c5c32d1d
commit
53de44f272
@ -157,8 +157,12 @@ void TopBarOverride::performForward() {
|
|||||||
_correctionCancelRequests.fire({});
|
_correctionCancelRequests.fire({});
|
||||||
return;
|
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);
|
App::main()->setForwardDraft(peer->id, items);
|
||||||
|
if (that) {
|
||||||
|
that->_correctionCancelRequests.fire({});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
Ui::show(Box<PeerListBox>(
|
Ui::show(Box<PeerListBox>(
|
||||||
std::make_unique<ChooseRecipientBoxController>(std::move(callback)),
|
std::make_unique<ChooseRecipientBoxController>(std::move(callback)),
|
||||||
|
Loading…
Reference in New Issue
Block a user