MSC4014
This commit is contained in:
@@ -231,7 +231,13 @@ async def capabilities():
|
||||
"9": "stable",
|
||||
"10": "stable",
|
||||
"11": "stable",
|
||||
"12": "stable"
|
||||
"12": "stable",
|
||||
"org.matrix.msc3757.10": "stable",
|
||||
"org.matrix.msc3757.11": "stable",
|
||||
"org.matrix.hydra.11": "stable",
|
||||
"org.matrix.msc3667": "stable",
|
||||
"org.matrix.msc3787": "stable",
|
||||
"org.matrix.msc4014": "unstable",
|
||||
},
|
||||
"org.matrix.msc3244.room_capabilities": {
|
||||
"knock": {
|
||||
@@ -461,6 +467,7 @@ async def room_query(room):
|
||||
|
||||
return jsonify({})
|
||||
|
||||
|
||||
@client.route("/_matrix/client/v3/rooms/<room>/aliases")
|
||||
async def room_aliases(room):
|
||||
return jsonify({
|
||||
@@ -475,6 +482,7 @@ async def room_aliases(room):
|
||||
async def room_visibility(room):
|
||||
return jsonify({"visibility": "public"})
|
||||
|
||||
|
||||
@client.route("/_matrix/client/v3/search", methods=["POST"])
|
||||
async def search():
|
||||
room = globals.make_event_id().replace("$", "!")
|
||||
@@ -546,6 +554,7 @@ async def url_preview():
|
||||
"og:title": "cool cat"
|
||||
})
|
||||
|
||||
|
||||
@client.route("/_matrix/client/v1/media/preview_url")
|
||||
async def media_preview():
|
||||
response = send_file(config.cat)
|
||||
@@ -553,6 +562,7 @@ async def media_preview():
|
||||
response.headers["Content-Type"] = "image/jpg"
|
||||
return response
|
||||
|
||||
|
||||
@client.route("/_matrix/media/v3/upload", methods=["POST"])
|
||||
@client.route("/_matrix/media/r0/upload", methods=["POST"])
|
||||
@client.route("/_matrix/media/v1/create", methods=["POST"])
|
||||
@@ -581,6 +591,7 @@ async def profile_keys(userId, key):
|
||||
|
||||
return jsonify({})
|
||||
|
||||
|
||||
@client.route("/_matrix/client/v3/profile/<userId>")
|
||||
@client.route("/_matrix/client/r0/profile/<userId>")
|
||||
async def user_profile(userId):
|
||||
@@ -611,6 +622,7 @@ async def room_messages(roomId):
|
||||
"start": f"{os.urandom(16).hex()}"
|
||||
})
|
||||
|
||||
|
||||
@client.route("/_matrix/client/v3/keys/query", methods=["POST"])
|
||||
@client.route("/_matrix/client/r0/keys/query", methods=["POST"])
|
||||
async def query_keys():
|
||||
@@ -622,6 +634,7 @@ async def query_keys():
|
||||
"user_signing_keys": user
|
||||
})
|
||||
|
||||
|
||||
@client.route("/_matrix/client/api/v1/createRoom", methods=["POST"])
|
||||
@client.route("/_matrix/client/v3/createRoom", methods=["POST"])
|
||||
@client.route("/_matrix/client/r0/createRoom", methods=["POST"])
|
||||
|
||||
Reference in New Issue
Block a user