From 084d442afa4ec96a257d6ece9dee55ebce902b42 Mon Sep 17 00:00:00 2001 From: Ajay Bura <32841439+ajbura@users.noreply.github.com> Date: Mon, 27 Apr 2026 20:15:25 +0530 Subject: [PATCH] allow call widget to send call notification event --- src/app/plugins/call/CallEmbed.ts | 3 --- src/app/plugins/call/utils.ts | 8 +------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/app/plugins/call/CallEmbed.ts b/src/app/plugins/call/CallEmbed.ts index c1deb0d13..fc73008be 100644 --- a/src/app/plugins/call/CallEmbed.ts +++ b/src/app/plugins/call/CallEmbed.ts @@ -104,9 +104,6 @@ export class CallEmbed { theme: themeKind, header: 'none', }); - if (CallEmbed.startingDMCall(intent)) { - params.append('sendNotificationType', 'ring'); - } const widgetUrl = new URL( `${trimTrailingSlash(import.meta.env.BASE_URL)}/public/element-call/index.html`, diff --git a/src/app/plugins/call/utils.ts b/src/app/plugins/call/utils.ts index 0ea72b3c8..84d02f824 100644 --- a/src/app/plugins/call/utils.ts +++ b/src/app/plugins/call/utils.ts @@ -78,19 +78,13 @@ export function getCallCapabilities( WidgetEventCapability.forStateEvent(EventDirection.Receive, EventType.RoomCreate).raw ); - capabilities.add( - WidgetEventCapability.forRoomEvent( - EventDirection.Receive, - 'org.matrix.msc4075.rtc.notification' - ).raw - ); - [ 'io.element.call.encryption_keys', 'org.matrix.rageshake_request', EventType.Reaction, EventType.RoomRedaction, 'io.element.call.reaction', + 'org.matrix.msc4075.rtc.notification', 'org.matrix.msc4310.rtc.decline', ].forEach((type) => { capabilities.add(WidgetEventCapability.forRoomEvent(EventDirection.Send, type).raw);