Fix creation of forward_from dialog in Saved Messages.
GitOrigin-RevId: ebd2d54986e374ef4b495ea0f3310d9c87a12933
This commit is contained in:
parent
eea18f732b
commit
e0d303095f
@ -14910,6 +14910,7 @@ void MessagesManager::resolve_dependencies_force(const Dependencies &dependencie
|
||||
for (auto dialog_id : dependencies.dialog_ids) {
|
||||
if (dialog_id.is_valid() && !have_dialog_force(dialog_id)) {
|
||||
LOG(ERROR) << "Can't find " << dialog_id;
|
||||
force_create_dialog(dialog_id, "resolve_dependencies_force");
|
||||
}
|
||||
}
|
||||
for (auto web_page_id : dependencies.web_page_ids) {
|
||||
@ -17058,6 +17059,9 @@ unique_ptr<MessagesManager::MessageForwardInfo> MessagesManager::get_message_for
|
||||
sender_user_id = UserId();
|
||||
}
|
||||
}
|
||||
if (from_dialog_id.is_valid()) {
|
||||
force_create_dialog(from_dialog_id, "message forward from info");
|
||||
}
|
||||
|
||||
return make_unique<MessageForwardInfo>(sender_user_id, forward_header->date_, dialog_id, message_id, author_signature,
|
||||
from_dialog_id, from_message_id);
|
||||
|
Reference in New Issue
Block a user