Possibly fix pinned message preloading.
GitOrigin-RevId: fff9d032e3674b2f7e6a2da06e3ae9bc8e8180ea
This commit is contained in:
parent
1a16f0ea9f
commit
e7425d3fce
@ -21827,13 +21827,13 @@ MessagesManager::Message *MessagesManager::add_message_to_dialog(Dialog *d, uniq
|
||||
// notification group must be created here because it may force adding new messages from database
|
||||
// in get_message_notification_group_force
|
||||
get_dialog_notification_group_id(d->dialog_id, get_notification_group_info(d, message.get()));
|
||||
|
||||
}
|
||||
if (*need_update) {
|
||||
auto pinned_message_id = get_message_content_pinned_message_id(message->content.get());
|
||||
if (pinned_message_id.is_valid() && have_message({dialog_id, pinned_message_id}, "preload pinned message")) {
|
||||
LOG(INFO) << "Preloaded pinned " << pinned_message_id << " from database";
|
||||
}
|
||||
}
|
||||
if (*need_update) {
|
||||
|
||||
if (d->pinned_message_notification_message_id.is_valid() &&
|
||||
have_message({dialog_id, d->pinned_message_notification_message_id}, "preload previously pinned message")) {
|
||||
LOG(INFO) << "Preloaded previously pinned " << d->pinned_message_notification_message_id << " from database";
|
||||
|
Reference in New Issue
Block a user