Update MSC4373 implentation

This commit is contained in:
2025-10-22 22:45:56 -04:00
parent c1a4de06ce
commit 1fce4d5ba1

View File

@@ -425,6 +425,8 @@ async def user_keys():
@server.route("/_matrix/federation/v2/invite/<room>/<txnId>", methods=["PUT"])
async def invite_user_v2(room, txnId):
invite_data = request.json
if "event" in invite_data:
if "room_version" in invite_data:
if invite_data["room_version"] not in ["1", "2"]:
@@ -583,7 +585,7 @@ async def state_ids(room):
@server.route("/_matrix/federation/v1/edutypes")
async def edutypes():
return jsonify({
"read_receipts": False,
"presence": False,
"typing": False
"m.presence": False,
"m.receipt": False,
"m.typing": False,
})