Add room list debugger

This commit is contained in:
Cadence Ember 2025-02-01 01:40:59 +13:00
commit 5b21344a65
4 changed files with 76 additions and 6 deletions

View file

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