mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-10 04:12:50 +02:00
Store invite
in database and sync power on startup
This commit is contained in:
parent
74632c671c
commit
df1296e579
8 changed files with 119 additions and 4 deletions
|
@ -70,6 +70,7 @@ async function inviteToRoom(roomID, mxidToInvite, mxid) {
|
|||
}
|
||||
|
||||
async function leaveRoom(roomID, mxid) {
|
||||
console.log(`[api] leave: ${roomID}: ${mxid}`)
|
||||
await mreq.mreq("POST", path(`/client/v3/rooms/${roomID}/leave`, mxid), {})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue