2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Allow complex forwarding from Saved to Saved.

This commit is contained in:
John Preston
2022-06-22 12:21:44 +04:00
parent 654fefaa72
commit e72b4c6192

View File

@@ -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()) {