Skip to content

Commit

Permalink
Allow complex forwarding from Saved to Saved.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jun 22, 2022
1 parent 654fefa commit e72b4c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Telegram/SourceFiles/window/window_peer_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,9 @@ QPointer<Ui::BoxContent> ShowForwardMessagesBox(
navigation
](not_null<PeerData*> peer) mutable {
const auto content = navigation->parentController()->content();
if (peer->isSelf()) {
if (peer->isSelf()
&& !draft.ids.empty()
&& draft.ids.front().peer != peer->id) {
const auto history = peer->owner().history(peer);
auto resolved = history->resolveForwardDraft(draft);
if (!resolved.items.empty()) {
Expand Down

0 comments on commit e72b4c6

Please sign in to comment.