mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-25 16:54:25 +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({});
|
||||
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)),
|
||||
|
Loading…
Reference in New Issue
Block a user