Fix getMessageLinkInfo for messages in unknown public chats.
GitOrigin-RevId: 7c8b1e0d09d27d96afa930fe5101128c4084fb08
This commit is contained in:
parent
7d2eb31731
commit
8ea7e4eccf
@ -14047,6 +14047,9 @@ void MessagesManager::on_get_message_link_dialog(MessageLinkInfo &&info, Promise
|
|||||||
force_create_dialog(dialog_id, "on_get_message_link_dialog");
|
force_create_dialog(dialog_id, "on_get_message_link_dialog");
|
||||||
} else {
|
} else {
|
||||||
dialog_id = resolve_dialog_username(info.username);
|
dialog_id = resolve_dialog_username(info.username);
|
||||||
|
if (dialog_id.is_valid()) {
|
||||||
|
force_create_dialog(dialog_id, "on_get_message_link_dialog", true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Dialog *d = get_dialog_force(dialog_id);
|
Dialog *d = get_dialog_force(dialog_id);
|
||||||
if (d == nullptr) {
|
if (d == nullptr) {
|
||||||
|
Reference in New Issue
Block a user