Avoid redundant message_id checks; it has already been checked.
This commit is contained in:
parent
bbde50ba03
commit
70b3057627
@ -34272,14 +34272,8 @@ MessagesManager::Message *MessagesManager::add_message_to_dialog(Dialog *d, uniq
|
||||
<< ", have_next = " << have_next;
|
||||
|
||||
if (!message_id.is_valid()) {
|
||||
if (message_id.is_valid_scheduled()) {
|
||||
return add_scheduled_message_to_dialog(d, std::move(message), from_database, from_update, need_update, source);
|
||||
}
|
||||
LOG(ERROR) << "Receive " << message_id << " in " << dialog_id << " from " << source;
|
||||
CHECK(!from_database);
|
||||
debug_add_message_to_dialog_fail_reason_ = "invalid message identifier";
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
if (*need_update) {
|
||||
CHECK(from_update);
|
||||
|
Loading…
Reference in New Issue
Block a user