Fix can_be_replied.
This commit is contained in:
parent
f8d9205fcd
commit
779d72e165
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user