Skip to content

Commit

Permalink
Fix MessagesManager::get_replied_message_id.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Nov 9, 2023
1 parent 8ec587f commit 6ee6428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion td/telegram/MessagesManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17729,7 +17729,7 @@ MessageFullId MessagesManager::get_replied_message_id(DialogId dialog_id, const
if (reply_message_full_id.get_message_id() != MessageId()) {
return reply_message_full_id;
}
if (m->top_thread_message_id.is_valid()) {
if (m->top_thread_message_id.is_valid() && m->top_thread_message_id != m->message_id) {
return {dialog_id, m->top_thread_message_id};
}
return {};
Expand Down

0 comments on commit 6ee6428

Please sign in to comment.