Do not log error about early received pinned message.
GitOrigin-RevId: f840bd03c6e90c6bc1796c5160ce695b35444543
This commit is contained in:
parent
bc13613a24
commit
03945ea7b9
@ -22222,9 +22222,11 @@ MessagesManager::Message *MessagesManager::add_message_to_dialog(Dialog *d, uniq
|
|||||||
}
|
}
|
||||||
if (max_message_id != MessageId() && message_id.get() > max_message_id.get()) {
|
if (max_message_id != MessageId() && message_id.get() > max_message_id.get()) {
|
||||||
if (!message->from_database) {
|
if (!message->from_database) {
|
||||||
|
if (message_id != d->pinned_message_id) {
|
||||||
LOG(ERROR) << "Ignore " << message_id << " in " << dialog_id << " received not through update from " << source
|
LOG(ERROR) << "Ignore " << message_id << " in " << dialog_id << " received not through update from " << source
|
||||||
<< ". Last is " << max_message_id << ", channel difference " << debug_channel_difference_dialog_
|
<< ". Last is " << max_message_id << ", channel difference " << debug_channel_difference_dialog_
|
||||||
<< " " << to_string(get_message_object(dialog_id, message.get()));
|
<< " " << to_string(get_message_object(dialog_id, message.get()));
|
||||||
|
}
|
||||||
dump_debug_message_op(d, 3);
|
dump_debug_message_op(d, 3);
|
||||||
if (dialog_id.get_type() == DialogType::Channel && have_input_peer(dialog_id, AccessRights::Read)) {
|
if (dialog_id.get_type() == DialogType::Channel && have_input_peer(dialog_id, AccessRights::Read)) {
|
||||||
channel_get_difference_retry_timeout_.add_timeout_in(dialog_id.get(), 0.001);
|
channel_get_difference_retry_timeout_.add_timeout_in(dialog_id.get(), 0.001);
|
||||||
|
Reference in New Issue
Block a user