Emoji Effect: Fix duplicate keys error (#3782)

This commit is contained in:
Alexander Zinchuk 2023-09-04 04:05:32 +02:00
parent e7a7e6f042
commit 03c6e79302

View File

@ -158,7 +158,7 @@ addActionHandler('apiUpdate', (global, actions, update): ActionReturnType => {
const tabState = selectTabState(global, tabId);
global = updateTabState(global, {
activeEmojiInteractions: [...(tabState.activeEmojiInteractions || []), {
id: tabState.activeEmojiInteractions?.length || 0,
id: Math.random(),
animatedEffect: update.emoji,
messageId: update.messageId,
} as ActiveEmojiInteraction],