Skip to content

Commit 4c0dae2

Browse files
committed
Fix can_revoke_message for failed to send messages in secret chats.
1 parent 1b4c328 commit 4c0dae2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎td/telegram/MessagesManager.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8466,7 +8466,7 @@ bool MessagesManager::can_revoke_message(DialogId dialog_id, const Message *m) c
84668466
if (m->message_id.is_yet_unsent()) {
84678467
return true;
84688468
}
8469-
CHECK(m->message_id.is_server());
8469+
CHECK(m->message_id.is_server() || dialog_type == DialogType::SecretChat);
84708470

84718471
const int32 DEFAULT_REVOKE_TIME_LIMIT = td_->auth_manager_->is_bot() ? 2 * 86400 : std::numeric_limits<int32>::max();
84728472
auto content_type = m->content->get_type();

0 commit comments

Comments
 (0)