diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 83880201d..5ca142000 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -17350,7 +17350,7 @@ void MessagesManager::get_message_properties(DialogId dialog_id, MessageId messa auto can_be_pinned = can_pin_message(dialog_id, m).is_ok(); auto can_be_replied = message_id.is_valid() && !(message_id == MessageId(ServerMessageId(1)) && dialog_type == DialogType::Channel) && - m->message_id.is_yet_unsent() && (!m->message_id.is_local() || dialog_type == DialogType::SecretChat) && + !m->message_id.is_yet_unsent() && (!m->message_id.is_local() || dialog_type == DialogType::SecretChat) && (dialog_type != DialogType::Chat || td_->chat_manager_->get_chat_is_active(dialog_id.get_chat_id())); auto can_be_replied_in_another_chat = can_be_forwarded && m->message_id.is_server(); auto can_be_reported = dialog_type != DialogType::SecretChat && can_report_message(m->message_id).is_ok();