mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Don't play interactions without large emoji.
This commit is contained in:
parent
d4db679ce8
commit
422bfd973b
1 changed files with 4 additions and 1 deletions
|
@ -59,7 +59,10 @@ EmojiInteractions::~EmojiInteractions() = default;
|
|||
void EmojiInteractions::play(
|
||||
ChatHelpers::EmojiInteractionPlayRequest request,
|
||||
not_null<Element*> view) {
|
||||
if (_plays.empty()) {
|
||||
if (!view->media()) {
|
||||
// Large emoji may be disabled.
|
||||
return;
|
||||
} else if (_plays.empty()) {
|
||||
play(
|
||||
std::move(request.emoticon),
|
||||
view,
|
||||
|
|
Loading…
Add table
Reference in a new issue