Fix media_group_id of messages automatically forwarded to discussion group.

This commit is contained in:
levlam 2020-11-26 19:31:07 +03:00
parent 72b3f6ea4d
commit 81b2334a31

View File

@ -1508,7 +1508,7 @@ void Client::JsonMessage::store(JsonValueScope *scope) const {
<< message_->chat_id << " while storing " << source_ << " " << message_->id; << message_->chat_id << " while storing " << source_ << " " << message_->id;
} }
} }
if (message_->media_album_id > 0) { if (message_->media_album_id != 0) {
object("media_group_id", td::to_string(message_->media_album_id)); object("media_group_id", td::to_string(message_->media_album_id));
} }
switch (message_->content->get_id()) { switch (message_->content->get_id()) {