mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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(
|
void EmojiInteractions::play(
|
||||||
ChatHelpers::EmojiInteractionPlayRequest request,
|
ChatHelpers::EmojiInteractionPlayRequest request,
|
||||||
not_null<Element*> view) {
|
not_null<Element*> view) {
|
||||||
if (_plays.empty()) {
|
if (!view->media()) {
|
||||||
|
// Large emoji may be disabled.
|
||||||
|
return;
|
||||||
|
} else if (_plays.empty()) {
|
||||||
play(
|
play(
|
||||||
std::move(request.emoticon),
|
std::move(request.emoticon),
|
||||||
view,
|
view,
|
||||||
|
|
Loading…
Add table
Reference in a new issue