KI-AGENT: Matrix-Chat live aktualisieren

This commit is contained in:
2026-05-18 17:45:56 +02:00
parent 655459a46b
commit 8b40be7909
3 changed files with 217 additions and 27 deletions

View File

@@ -86,6 +86,17 @@ export default async function communicationRoutes(server: FastifyInstance) {
}
})
server.get("/communication/matrix/rooms/general/members", async (req, reply) => {
try {
return await matrix.getGeneralRoomMembers(req.user.user_id, req.user.tenant_id)
} catch (err: any) {
req.log.error(err)
return reply
.code(err.statusCode || 500)
.send({ error: err.message || "Matrix members failed" })
}
})
server.post("/communication/matrix/rooms/general/messages", async (req, reply) => {
try {
const body = req.body as { text?: string }