Fix call to set_dialog_is_empty.
GitOrigin-RevId: 88537853efdec536e052e580487f10481a7aa8de
This commit is contained in:
parent
62f335d3ae
commit
0171ae53ae
|
@ -14806,7 +14806,7 @@ void MessagesManager::on_get_history_from_database(DialogId dialog_id, MessageId
|
||||||
<< " with offset " << offset << " and limit " << limit << ". First database message is "
|
<< " with offset " << offset << " and limit " << limit << ". First database message is "
|
||||||
<< d->first_database_message_id << ", have_full_history = " << d->have_full_history;
|
<< d->first_database_message_id << ", have_full_history = " << d->have_full_history;
|
||||||
|
|
||||||
if (messages.empty() && from_the_end && d->have_full_history) {
|
if (messages.empty() && from_the_end && d->have_full_history && d->messages == nullptr) {
|
||||||
set_dialog_is_empty(d, "on_get_history_from_database empty");
|
set_dialog_is_empty(d, "on_get_history_from_database empty");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user