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