2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Show error when forwarding to slowmode group.

This commit is contained in:
John Preston
2019-07-18 12:03:09 +02:00
parent f4754f210c
commit 4a10a88ecf
2 changed files with 75 additions and 36 deletions

View File

@@ -810,8 +810,8 @@ QPointer<Ui::RpWidget> ShowForwardMessagesBox(
Ui::Toast::Show(tr::lng_share_done(tr::now));
});
}
} else {
App::main()->setForwardDraft(peer->id, std::move(ids));
} else if (!App::main()->setForwardDraft(peer->id, std::move(ids))) {
return;
}
if (const auto strong = *weak) {
strong->closeBox();