From 9bdd5b0e58b44dd7dbb898b7e7e4de81ae5ba398 Mon Sep 17 00:00:00 2001 From: Robin Townsend Date: Mon, 24 Oct 2022 12:30:30 -0400 Subject: [PATCH] Make rageshake requests work in matryoshka mode --- src/widget.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/widget.ts b/src/widget.ts index aa0be832..44ad29b2 100644 --- a/src/widget.ts +++ b/src/widget.ts @@ -88,6 +88,7 @@ export const widget: WidgetHelpers | null = (() => { if (!baseUrl) throw new Error("Base URL must be supplied"); // These are all the event types the app uses + const sendRecvEvent = ["org.matrix.rageshake_request"]; const sendState = [ { eventType: EventType.GroupCallPrefix }, { eventType: EventType.GroupCallMemberPrefix, stateKey: userId }, @@ -113,6 +114,8 @@ export const widget: WidgetHelpers | null = (() => { const client = createRoomWidgetClient( api, { + sendEvent: sendRecvEvent, + receiveEvent: sendRecvEvent, sendState, receiveState, sendToDevice: sendRecvToDevice,