Play sticker animations only in private chats
This commit is contained in:
parent
593c5844b9
commit
aa88dfe56a
@ -1372,6 +1372,11 @@ export function wrapSticker({doc, div, middleware, lazyLoadQueue, group, play, o
|
||||
animation.restart();
|
||||
}
|
||||
|
||||
const peerId = appImManager.chat.peerId;
|
||||
if(!peerId.isUser()) {
|
||||
return;
|
||||
}
|
||||
|
||||
const doc = appStickersManager.getAnimatedEmojiSticker(emoji, true);
|
||||
if(!doc) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user