mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 23:27:09 +02:00
Allow opening large (> 512px) stickers in media viewer.
This commit is contained in:
parent
093d89db83
commit
baccec623d
1 changed files with 5 additions and 0 deletions
|
@ -274,8 +274,13 @@ void Sticker::refreshLink() {
|
|||
StickerSetBox::Show(App::wnd()->sessionController(), document);
|
||||
});
|
||||
} else if (sticker
|
||||
&& (_data->dimensions.width() > kStickerSideSize
|
||||
|| _data->dimensions.height() > kStickerSideSize)
|
||||
&& !_parent->data()->isSending()
|
||||
&& !_parent->data()->hasFailed()) {
|
||||
// In case we have a .webp file that is displayed as a sticker, but
|
||||
// that doesn't fit in 512x512, we assume it may be a regular large
|
||||
// .webp image and we allow to open it in media viewer.
|
||||
_link = std::make_shared<DocumentOpenClickHandler>(
|
||||
_data,
|
||||
_parent->data()->fullId());
|
||||
|
|
Loading…
Add table
Reference in a new issue