Prepare for room v3+, misc bugfixes
This commit is contained in:
@@ -133,11 +133,11 @@ async def invite():
|
||||
"public_keys": [
|
||||
{
|
||||
"key_validity_url": f"https://{server_name}/_matrix/identity/v2/pubkey/isvalid",
|
||||
"public_key":"ohyeah"
|
||||
"public_key": "ohyeah"
|
||||
},
|
||||
{
|
||||
"key_validity_url": f"https://{server_name}/_matrix/identity/v2/pubkey/ephemeral/isvalid",
|
||||
"public_key":"thisssssss"
|
||||
"public_key": "burgerkingfootlettuce"
|
||||
}
|
||||
],
|
||||
"token": "vona"
|
||||
@@ -148,10 +148,10 @@ async def invite():
|
||||
@identity.route("/_matrix/identity/v2/sign-ed25519", methods=["POST"])
|
||||
async def invite_signing():
|
||||
required_keys = {"mxid", "private_key", "token"}
|
||||
d = data.get_json()
|
||||
d = request.data.get_json()
|
||||
|
||||
if set(d.keys()) == required_keys:
|
||||
return jsonify(sign_json(d))
|
||||
return jsonify(globals.sign_json(d))
|
||||
else:
|
||||
return jsonify({
|
||||
"errcode": "M_UNRECOGNIZED",
|
||||
|
||||
Reference in New Issue
Block a user