Don't try to change top_thread_message_id for messages in dialog.
This commit is contained in:
parent
7fdbc4b704
commit
68ebfa3055
@ -36805,7 +36805,8 @@ bool MessagesManager::update_message(Dialog *d, Message *old_message, unique_ptr
|
||||
}
|
||||
}
|
||||
if (old_message->top_thread_message_id != new_message->top_thread_message_id) {
|
||||
if (new_message->top_thread_message_id == MessageId() || old_message->top_thread_message_id == MessageId()) {
|
||||
if ((new_message->top_thread_message_id == MessageId() || old_message->top_thread_message_id == MessageId()) &&
|
||||
!is_message_in_dialog) {
|
||||
LOG(DEBUG) << "Change message thread from " << old_message->top_thread_message_id << " to "
|
||||
<< new_message->top_thread_message_id;
|
||||
old_message->top_thread_message_id = new_message->top_thread_message_id;
|
||||
|
Loading…
Reference in New Issue
Block a user