Ignore force_small_media if there is force_large_media.
This commit is contained in:
parent
e246ee7b5f
commit
c7d252bdc5
@ -133,9 +133,11 @@ class MessageText final : public MessageContent {
|
|||||||
, force_large_media(force_large_media)
|
, force_large_media(force_large_media)
|
||||||
, skip_web_page_confirmation(skip_web_page_confirmation)
|
, skip_web_page_confirmation(skip_web_page_confirmation)
|
||||||
, web_page_url(std::move(web_page_url)) {
|
, web_page_url(std::move(web_page_url)) {
|
||||||
if (web_page_url.empty()) {
|
if (this->web_page_url.empty()) {
|
||||||
force_small_media = false;
|
this->force_small_media = false;
|
||||||
force_large_media = false;
|
this->force_large_media = false;
|
||||||
|
} else if (this->force_large_media) {
|
||||||
|
this->force_small_media = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user