Ignore force_small_media if there is force_large_media.

This commit is contained in:
levlam 2023-11-01 23:23:45 +03:00
parent e246ee7b5f
commit c7d252bdc5

View File

@ -133,9 +133,11 @@ class MessageText final : public MessageContent {
, force_large_media(force_large_media)
, skip_web_page_confirmation(skip_web_page_confirmation)
, web_page_url(std::move(web_page_url)) {
if (web_page_url.empty()) {
force_small_media = false;
force_large_media = false;
if (this->web_page_url.empty()) {
this->force_small_media = false;
this->force_large_media = false;
} else if (this->force_large_media) {
this->force_small_media = false;
}
}