Fix views count for forwarded messages.
GitOrigin-RevId: 6d5d4d000ddf5fb0f2175e259e465ccacf40bd15
This commit is contained in:
parent
fe133efefc
commit
db07c587ca
@ -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->via_bot_user_id = forwarded_message->via_bot_user_id;
|
||||||
m->media_album_id = media_album_id;
|
m->media_album_id = media_album_id;
|
||||||
m->in_game_share = in_game_share;
|
m->in_game_share = in_game_share;
|
||||||
|
if (forwarded_message->views > 0) {
|
||||||
|
m->views = forwarded_message->views;
|
||||||
|
}
|
||||||
|
|
||||||
if (is_game) {
|
if (is_game) {
|
||||||
if (m->via_bot_user_id == my_id) {
|
if (m->via_bot_user_id == my_id) {
|
||||||
|
Reference in New Issue
Block a user