From d2109de4ca76b02472c6cc70ca9445611b21e9a4 Mon Sep 17 00:00:00 2001 From: Robin Date: Wed, 30 Nov 2022 08:54:18 -0500 Subject: [PATCH] Remove unused Element Call capabilities (#9653) As of 44e22e268420bd4b24a110840e2edaca46653407 in the Element Call repo, Element Call widgets no longer request the capability to start calls. --- src/stores/widgets/StopGapWidgetDriver.ts | 3 --- test/stores/widgets/StopGapWidgetDriver-test.ts | 1 - 2 files changed, 4 deletions(-) diff --git a/src/stores/widgets/StopGapWidgetDriver.ts b/src/stores/widgets/StopGapWidgetDriver.ts index 7bc85e02df..163c14f82f 100644 --- a/src/stores/widgets/StopGapWidgetDriver.ts +++ b/src/stores/widgets/StopGapWidgetDriver.ts @@ -122,9 +122,6 @@ export class StopGapWidgetDriver extends WidgetDriver { this.allowedCapabilities.add( WidgetEventCapability.forStateEvent(EventDirection.Receive, EventType.RoomMember).raw, ); - this.allowedCapabilities.add( - WidgetEventCapability.forStateEvent(EventDirection.Send, "org.matrix.msc3401.call").raw, - ); this.allowedCapabilities.add( WidgetEventCapability.forStateEvent(EventDirection.Receive, "org.matrix.msc3401.call").raw, ); diff --git a/test/stores/widgets/StopGapWidgetDriver-test.ts b/test/stores/widgets/StopGapWidgetDriver-test.ts index 7adf38a853..90214ec406 100644 --- a/test/stores/widgets/StopGapWidgetDriver-test.ts +++ b/test/stores/widgets/StopGapWidgetDriver-test.ts @@ -69,7 +69,6 @@ describe("StopGapWidgetDriver", () => { "org.matrix.msc2762.send.event:org.matrix.rageshake_request", "org.matrix.msc2762.receive.event:org.matrix.rageshake_request", "org.matrix.msc2762.receive.state_event:m.room.member", - "org.matrix.msc2762.send.state_event:org.matrix.msc3401.call", "org.matrix.msc2762.receive.state_event:org.matrix.msc3401.call", "org.matrix.msc2762.send.state_event:org.matrix.msc3401.call.member#@alice:example.org", "org.matrix.msc2762.receive.state_event:org.matrix.msc3401.call.member",