allow call widget to send call notification event
This commit is contained in:
@@ -104,9 +104,6 @@ export class CallEmbed {
|
|||||||
theme: themeKind,
|
theme: themeKind,
|
||||||
header: 'none',
|
header: 'none',
|
||||||
});
|
});
|
||||||
if (CallEmbed.startingDMCall(intent)) {
|
|
||||||
params.append('sendNotificationType', 'ring');
|
|
||||||
}
|
|
||||||
|
|
||||||
const widgetUrl = new URL(
|
const widgetUrl = new URL(
|
||||||
`${trimTrailingSlash(import.meta.env.BASE_URL)}/public/element-call/index.html`,
|
`${trimTrailingSlash(import.meta.env.BASE_URL)}/public/element-call/index.html`,
|
||||||
|
|||||||
@@ -78,19 +78,13 @@ export function getCallCapabilities(
|
|||||||
WidgetEventCapability.forStateEvent(EventDirection.Receive, EventType.RoomCreate).raw
|
WidgetEventCapability.forStateEvent(EventDirection.Receive, EventType.RoomCreate).raw
|
||||||
);
|
);
|
||||||
|
|
||||||
capabilities.add(
|
|
||||||
WidgetEventCapability.forRoomEvent(
|
|
||||||
EventDirection.Receive,
|
|
||||||
'org.matrix.msc4075.rtc.notification'
|
|
||||||
).raw
|
|
||||||
);
|
|
||||||
|
|
||||||
[
|
[
|
||||||
'io.element.call.encryption_keys',
|
'io.element.call.encryption_keys',
|
||||||
'org.matrix.rageshake_request',
|
'org.matrix.rageshake_request',
|
||||||
EventType.Reaction,
|
EventType.Reaction,
|
||||||
EventType.RoomRedaction,
|
EventType.RoomRedaction,
|
||||||
'io.element.call.reaction',
|
'io.element.call.reaction',
|
||||||
|
'org.matrix.msc4075.rtc.notification',
|
||||||
'org.matrix.msc4310.rtc.decline',
|
'org.matrix.msc4310.rtc.decline',
|
||||||
].forEach((type) => {
|
].forEach((type) => {
|
||||||
capabilities.add(WidgetEventCapability.forRoomEvent(EventDirection.Send, type).raw);
|
capabilities.add(WidgetEventCapability.forRoomEvent(EventDirection.Send, type).raw);
|
||||||
|
|||||||
Reference in New Issue
Block a user