Send leave request
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user