mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
committed by
Andrew Ferrazzutti
parent
c1ce46b848
commit
005579a1c3
@@ -298,13 +298,13 @@ export function useRageshakeRequest(): (
|
|||||||
|
|
||||||
const sendRageshakeRequest = useCallback(
|
const sendRageshakeRequest = useCallback(
|
||||||
(roomId: string, rageshakeRequestId: string) => {
|
(roomId: string, rageshakeRequestId: string) => {
|
||||||
|
// @ts-expect-error - org.matrix.rageshake_request is not part of `keyof TimelineEvents` but it is okay to sent a custom event.
|
||||||
client!.sendEvent(roomId, "org.matrix.rageshake_request", {
|
client!.sendEvent(roomId, "org.matrix.rageshake_request", {
|
||||||
request_id: rageshakeRequestId,
|
request_id: rageshakeRequestId,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
[client],
|
[client],
|
||||||
);
|
);
|
||||||
|
|
||||||
return sendRageshakeRequest;
|
return sendRageshakeRequest;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user