mirror of
https://github.com/vector-im/element-call.git
synced 2026-04-06 07:20:25 +00:00
committed by
Andrew Ferrazzutti
parent
c1ce46b848
commit
005579a1c3
@@ -298,13 +298,13 @@ export function useRageshakeRequest(): (
|
||||
|
||||
const sendRageshakeRequest = useCallback(
|
||||
(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", {
|
||||
request_id: rageshakeRequestId,
|
||||
});
|
||||
},
|
||||
[client],
|
||||
);
|
||||
|
||||
return sendRageshakeRequest;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user