Fix views count for forwarded messages.

GitOrigin-RevId: 6d5d4d000ddf5fb0f2175e259e465ccacf40bd15
This commit is contained in:
levlam 2018-01-24 01:35:08 +03:00
parent fe133efefc
commit db07c587ca

View File

@ -17371,6 +17371,9 @@ Result<vector<MessageId>> MessagesManager::forward_messages(DialogId to_dialog_i
m->via_bot_user_id = forwarded_message->via_bot_user_id;
m->media_album_id = media_album_id;
m->in_game_share = in_game_share;
if (forwarded_message->views > 0) {
m->views = forwarded_message->views;
}
if (is_game) {
if (m->via_bot_user_id == my_id) {