Store invite in database and sync power on startup

This commit is contained in:
Cadence Ember
2024-08-26 01:34:46 +12:00
parent 74632c671c
commit df1296e579
8 changed files with 119 additions and 4 deletions

View File

@@ -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), {})
}