mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-05 19:59:20 +00:00
Make event listener more resillient.
This commit is contained in:
@@ -197,10 +197,9 @@ export const ReactionsProvider = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (event.getType() === ElementCallReactionEventType) {
|
if (event.getType() === ElementCallReactionEventType) {
|
||||||
// TODO: Validate content.
|
|
||||||
const content: ECallReactionEventContent = event.getContent();
|
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
|
// Check to see if this reaction was made to a membership event (and the
|
||||||
// sender of the reaction matches the membership)
|
// sender of the reaction matches the membership)
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user