Fix get_dialog_pinned_message.

GitOrigin-RevId: 19c58053e7d0d28729f6f7ca341b788df02a091d
This commit is contained in:
levlam 2020-10-21 02:23:29 +03:00
parent e783b0c2ec
commit 35045bf18e

View File

@ -16339,6 +16339,8 @@ MessageId MessagesManager::get_dialog_pinned_message(DialogId dialog_id, Promise
input_message = make_tl_object<telegram_api::inputMessagePinned>();
}
get_message_force_from_server(d, d->last_pinned_message_id, std::move(promise), std::move(input_message));
} else {
promise.set_value(Unit());
}
return d->last_pinned_message_id;