Improve can_be_replied.
This commit is contained in:
parent
773f43d67b
commit
4a7d9e15c2
@ -17351,7 +17351,8 @@ void MessagesManager::get_message_properties(DialogId dialog_id, MessageId messa
|
||||
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) &&
|
||||
(dialog_type != DialogType::Chat || td_->chat_manager_->get_chat_is_active(dialog_id.get_chat_id()));
|
||||
(dialog_type != DialogType::Chat || td_->chat_manager_->get_chat_is_active(dialog_id.get_chat_id())) &&
|
||||
can_send_message(dialog_id).is_ok();
|
||||
auto can_be_replied_in_another_chat = can_be_forwarded && m->message_id.is_server();
|
||||
auto can_be_shared_in_story = can_share_message_in_story(dialog_id, m);
|
||||
auto can_edit_scheduling_state = m->message_id.is_valid_scheduled() && m->message_id.is_scheduled_server();
|
||||
|
Loading…
Reference in New Issue
Block a user