Send leave request

This commit is contained in:
Jon Staab
2025-10-27 14:13:17 -07:00
parent 4583c4e028
commit fe72798592
3 changed files with 14 additions and 2 deletions
+10
View File
@@ -36,6 +36,7 @@ import {
FOLLOWS,
REACTION,
RELAY_JOIN,
RELAY_LEAVE,
ROOMS,
COMMENT,
ALERT_EMAIL,
@@ -627,6 +628,15 @@ export const makeJoinRequest = (params: JoinRequestParams) =>
export const publishJoinRequest = (params: JoinRequestParams) =>
publishThunk({event: makeJoinRequest(params), relays: [params.url]})
// Leave request
export type LeaveRequestParams = {
url: string
}
export const publishLeaveRequest = (params: LeaveRequestParams) =>
publishThunk({event: makeEvent(RELAY_LEAVE), relays: [params.url]})
// Lightning
export const getWebLn = () => (window as any).webln