mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-31 07:00:26 +00:00
Make event listener more resillient.
This commit is contained in:
@@ -197,10 +197,9 @@ export const ReactionsProvider = ({
|
||||
}
|
||||
|
||||
if (event.getType() === ElementCallReactionEventType) {
|
||||
// TODO: Validate content.
|
||||
const content: ECallReactionEventContent = event.getContent();
|
||||
|
||||
const membershipEventId = content["m.relates_to"].event_id;
|
||||
const membershipEventId = content?.["m.relates_to"]?.event_id;
|
||||
// Check to see if this reaction was made to a membership event (and the
|
||||
// sender of the reaction matches the membership)
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user