File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Telegram/SourceFiles/boxes Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1733,6 +1733,8 @@ ShareBox::SubmitCallback ShareBox::DefaultForwardCallback(
17331733 const auto donePhraseArgs = CreateForwardedMessagePhraseArgs (
17341734 result,
17351735 msgIds);
1736+ const auto showRecentForwardsToSelf = result.size () == 1
1737+ && result.front ()->peer ()->isSelf ();
17361738 const auto requestType = Data::Histories::RequestType::Send;
17371739 for (const auto thread : result) {
17381740 if (!comment.text .isEmpty ()) {
@@ -1790,6 +1792,13 @@ ShareBox::SubmitCallback ShareBox::DefaultForwardCallback(
17901792 Api::SuggestToMTP (options.suggest )
17911793 )).done ([=](const MTPUpdates &updates, mtpRequestId reqId) {
17921794 threadHistory->session ().api ().applyUpdates (updates);
1795+ if (showRecentForwardsToSelf) {
1796+ ApiWrap::ProcessRecentSelfForwards (
1797+ &threadHistory->session (),
1798+ updates,
1799+ peer->id ,
1800+ history->peer ->id );
1801+ }
17931802 state->requests .remove (reqId);
17941803 if (state->requests .empty ()) {
17951804 if (show->valid ()) {
You can’t perform that action at this time.
0 commit comments