From 8f42c972523f0880e7bf47a8a722bae0c29be61e Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 16 May 2022 20:00:59 +0300 Subject: [PATCH] Fix CHECK. --- td/telegram/MessagesManager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index ec00d50e7..9a6fa0709 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -27934,7 +27934,7 @@ Result MessagesManager::get_forwarded_messag bool to_secret = to_dialog_id.get_type() == DialogType::SecretChat; - bool can_use_server_forward = !to_secret; + bool can_use_server_forward = true; for (auto ©_option : copy_options) { if (!copy_option.is_supported_server_side()) { can_use_server_forward = false; @@ -27942,6 +27942,9 @@ Result MessagesManager::get_forwarded_messag } } CHECK(can_use_server_forward || copy_options.size() == 1); + if (to_secret) { + can_use_server_forward = false; + } ForwardedMessages result; result.to_dialog = to_dialog;