mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-31 07:00:26 +00:00
Fix case where you could send larger strings as emoji
This commit is contained in:
@@ -213,10 +213,17 @@ export const ReactionsProvider = ({
|
||||
return;
|
||||
}
|
||||
|
||||
const emoji = content.emoji?.split(/(?:)/u)?.[0];
|
||||
|
||||
if (!emoji) {
|
||||
logger.warn(`Reaction had no emoji from ${reactionEventId}`);
|
||||
return;
|
||||
}
|
||||
|
||||
// One of our custom reactions
|
||||
const reaction = {
|
||||
...GenericReaction,
|
||||
emoji: content.emoji,
|
||||
emoji,
|
||||
// If we don't find a reaction, we can fallback to the generic sound.
|
||||
...ReactionSet.find((r) => r.name === content.name),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user