Don't play interactions without large emoji.

This commit is contained in:
John Preston 2021-09-19 15:12:20 +03:00
parent d4db679ce8
commit 422bfd973b

View file

@ -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,