1
0
Fork 0

Compatibility: send {} with room joins

Now compatible with the spec and with condu(wu)it.
This commit is contained in:
Cadence Ember 2024-10-31 11:55:54 +13:00
parent e5f7c7fdcb
commit cce432aeee

View file

@ -60,7 +60,7 @@ async function createRoom(content) {
*/ */
async function joinRoom(roomIDOrAlias, mxid) { async function joinRoom(roomIDOrAlias, mxid) {
/** @type {Ty.R.RoomJoined} */ /** @type {Ty.R.RoomJoined} */
const root = await mreq.mreq("POST", path(`/client/v3/join/${roomIDOrAlias}`, mxid)) const root = await mreq.mreq("POST", path(`/client/v3/join/${roomIDOrAlias}`, mxid), {})
return root.room_id return root.room_id
} }