i dont even know what this PR is supposed to be about anymore, everyone lost the plot somewhere in the middle of act 2 #74

Open
Guzio wants to merge 128 commits from Guzio/out-of-your-element:mergable-fr-fr into main
Showing only changes of commit e301a1f3b0 - Show all commits
Wrong IF xD

This is getting nuked soon, but I still find if funny that I got it wrong.
Guzio 2026-04-25 13:12:58 +00:00

View file

@ -198,7 +198,7 @@ as.router.post("/api/link", defineEventHandler(async event => {
} }
} }
if (!foundRoom) throw createError({status: 400, message: "Bad Request", data: "Matrix room needs to be part of the bridged space"}) if (!foundRoom) throw createError({status: 400, message: "Bad Request", data: "Matrix room needs to be part of the bridged space"})
else if (!foundRoom) throw createError({status: 400, message: "Bad Request", data: "Matrix room cannot be of type m.space"}) else if (foundSpace) throw createError({status: 400, message: "Bad Request", data: "Matrix room cannot be of type m.space"})
// Check room exists and bridge is joined // Check room exists and bridge is joined
try { try {