Browse Source

Play sticker animations only in private chats

master
Eduard Kuzmenko 3 years ago
parent
commit
aa88dfe56a
  1. 5
      src/components/wrappers.ts

5
src/components/wrappers.ts

@ -1372,6 +1372,11 @@ export function wrapSticker({doc, div, middleware, lazyLoadQueue, group, play, o
animation.restart(); animation.restart();
} }
const peerId = appImManager.chat.peerId;
if(!peerId.isUser()) {
return;
}
const doc = appStickersManager.getAnimatedEmojiSticker(emoji, true); const doc = appStickersManager.getAnimatedEmojiSticker(emoji, true);
if(!doc) { if(!doc) {
return; return;

Loading…
Cancel
Save