Ignore message views when forward header isn't added.

GitOrigin-RevId: 41d611e4b2103a72802786c49e370624d9c30bee
This commit is contained in:
levlam 2018-07-04 22:00:13 +03:00
parent 321df81ebb
commit f3f26b0783

View File

@ -19160,7 +19160,7 @@ 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) {
if (forwarded_message->views > 0 && m->forward_info != nullptr) {
m->views = forwarded_message->views;
}