Emoji Effect: Fix duplicate keys error (#3782)
This commit is contained in:
parent
e7a7e6f042
commit
03c6e79302
@ -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],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user