2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Go to chat in forward

This commit is contained in:
RadRussianRus
2020-07-08 09:24:46 +03:00
parent a67772fdfa
commit aabe77b89c
9 changed files with 42 additions and 4 deletions

View File

@@ -1169,11 +1169,15 @@ QPointer<Ui::RpWidget> ShowForwardMessagesBox(
auto copyLinkCallback = canCopyLink
? Fn<void()>(std::move(copyCallback))
: Fn<void()>();
auto goToChatCallback = [navigation, data](PeerData *peer) {
navigation->parentController()->content()->setForwardDraft(peer->id, std::move(data->msgIds));
};
*weak = Ui::show(Box<ShareBox>(
App::wnd()->sessionController(),
std::move(copyLinkCallback),
std::move(submitCallback),
std::move(filterCallback)));
std::move(filterCallback),
std::move(goToChatCallback)));
return weak->data();
}