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"])
|
||||
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,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user