Allow passing outdated yet unsent message identifier to getRepliedMessage.

GitOrigin-RevId: b24c47456a3716022de52fe030245e048ff5d053
This commit is contained in:
levlam 2020-11-01 23:24:29 +03:00
parent ab5484fd78
commit 301c8b167f

View File

@ -16152,6 +16152,7 @@ FullMessageId MessagesManager::get_replied_message(DialogId dialog_id, MessageId
return FullMessageId();
}
message_id = get_persistent_message_id(d, message_id);
auto m = get_message_force(d, message_id, "get_replied_message");
if (m == nullptr) {
if (force) {