Make rageshake requests work in matryoshka mode
This commit is contained in:
@@ -88,6 +88,7 @@ export const widget: WidgetHelpers | null = (() => {
|
|||||||
if (!baseUrl) throw new Error("Base URL must be supplied");
|
if (!baseUrl) throw new Error("Base URL must be supplied");
|
||||||
|
|
||||||
// These are all the event types the app uses
|
// These are all the event types the app uses
|
||||||
|
const sendRecvEvent = ["org.matrix.rageshake_request"];
|
||||||
const sendState = [
|
const sendState = [
|
||||||
{ eventType: EventType.GroupCallPrefix },
|
{ eventType: EventType.GroupCallPrefix },
|
||||||
{ eventType: EventType.GroupCallMemberPrefix, stateKey: userId },
|
{ eventType: EventType.GroupCallMemberPrefix, stateKey: userId },
|
||||||
@@ -113,6 +114,8 @@ export const widget: WidgetHelpers | null = (() => {
|
|||||||
const client = createRoomWidgetClient(
|
const client = createRoomWidgetClient(
|
||||||
api,
|
api,
|
||||||
{
|
{
|
||||||
|
sendEvent: sendRecvEvent,
|
||||||
|
receiveEvent: sendRecvEvent,
|
||||||
sendState,
|
sendState,
|
||||||
receiveState,
|
receiveState,
|
||||||
sendToDevice: sendRecvToDevice,
|
sendToDevice: sendRecvToDevice,
|
||||||
|
|||||||
Reference in New Issue
Block a user