mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-10 04:12:50 +02:00
Add room list debugger
This commit is contained in:
parent
cf8867f945
commit
5b21344a65
4 changed files with 76 additions and 6 deletions
|
@ -63,6 +63,12 @@ as.router.post("/api/link", defineEventHandler(async event => {
|
|||
// Sync room data and space child
|
||||
await createRoom.syncRoom(parsedBody.discord)
|
||||
|
||||
// Send a notification in the room
|
||||
await api.sendEvent(parsedBody.matrix, "m.room.message", {
|
||||
msgtype: "m.notice",
|
||||
body: "👋 This room is now bridged with Discord. Say hi!"
|
||||
})
|
||||
|
||||
setResponseHeader(event, "HX-Refresh", "true")
|
||||
return null // 204
|
||||
}))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue