From 403ee79d61027e5b0aaf7928f7a0817ffc51f5a8 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 27 Apr 2023 18:01:40 +0100 Subject: [PATCH] Include org.matrix.call events in sent events for OTel --- src/otel/OTelGroupCallMembership.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/otel/OTelGroupCallMembership.ts b/src/otel/OTelGroupCallMembership.ts index 9f7573e..ca660ad 100644 --- a/src/otel/OTelGroupCallMembership.ts +++ b/src/otel/OTelGroupCallMembership.ts @@ -236,7 +236,11 @@ export class OTelGroupCallMembership { public onSendEvent(call: MatrixCall, event: VoipEvent) { const eventType = event.eventType as string; - if (!eventType.startsWith("m.call")) return; + if ( + !eventType.startsWith("m.call") && + !eventType.startsWith("org.matrix.call") + ) + return; const callTrackingInfo = this.callsByCallId.get(call.callId); if (!callTrackingInfo) {