Browse Source

Fix triggering selection on getting interaction

master
Eduard Kuzmenko 3 years ago
parent
commit
9ef094eb07
  1. 4
      src/lib/appManagers/appImManager.ts

4
src/lib/appManagers/appImManager.ts

@ -260,8 +260,8 @@ export class AppImManager {
if(typing?.action?._ === 'sendMessageEmojiInteraction') { if(typing?.action?._ === 'sendMessageEmojiInteraction') {
const action = typing.action; const action = typing.action;
const bubble = chat.bubbles.bubbles[appMessagesIdsManager.generateMessageId(typing.action.msg_id)]; const bubble = chat.bubbles.bubbles[appMessagesIdsManager.generateMessageId(typing.action.msg_id)];
if(bubble && getVisibleRect(bubble, chat.bubbles.scrollable.container)) { if(bubble && bubble.classList.contains('emoji-big') && bubble.classList.contains('sticker') && getVisibleRect(bubble, chat.bubbles.scrollable.container)) {
const stickerWrapper: HTMLElement = bubble.querySelector('.media-sticker-wrapper'); const stickerWrapper: HTMLElement = bubble.querySelector('.media-sticker-wrapper:not(.bubble-hover-reaction-sticker):not(.reaction-sticker)');
const data: SendMessageEmojiInteractionData = JSON.parse(action.interaction.data); const data: SendMessageEmojiInteractionData = JSON.parse(action.interaction.data);
data.a.forEach(a => { data.a.forEach(a => {

Loading…
Cancel
Save