mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
use parse_string
This commit is contained in:
parent
66a4ca1d28
commit
54ac18e832
@ -123,7 +123,7 @@ class RoomKeysServlet(RestServlet):
|
|||||||
requester = yield self.auth.get_user_by_req(request, allow_guest=False)
|
requester = yield self.auth.get_user_by_req(request, allow_guest=False)
|
||||||
user_id = requester.user.to_string()
|
user_id = requester.user.to_string()
|
||||||
body = parse_json_object_from_request(request)
|
body = parse_json_object_from_request(request)
|
||||||
version = request.args.get("version")[0]
|
version = parse_string(request, "version")
|
||||||
|
|
||||||
if session_id:
|
if session_id:
|
||||||
body = {
|
body = {
|
||||||
@ -199,7 +199,7 @@ class RoomKeysServlet(RestServlet):
|
|||||||
"""
|
"""
|
||||||
requester = yield self.auth.get_user_by_req(request, allow_guest=False)
|
requester = yield self.auth.get_user_by_req(request, allow_guest=False)
|
||||||
user_id = requester.user.to_string()
|
user_id = requester.user.to_string()
|
||||||
version = request.args.get("version")[0]
|
version = parse_string(request, "version")
|
||||||
|
|
||||||
room_keys = yield self.e2e_room_keys_handler.get_room_keys(
|
room_keys = yield self.e2e_room_keys_handler.get_room_keys(
|
||||||
user_id, version, room_id, session_id
|
user_id, version, room_id, session_id
|
||||||
@ -229,7 +229,7 @@ class RoomKeysServlet(RestServlet):
|
|||||||
|
|
||||||
requester = yield self.auth.get_user_by_req(request, allow_guest=False)
|
requester = yield self.auth.get_user_by_req(request, allow_guest=False)
|
||||||
user_id = requester.user.to_string()
|
user_id = requester.user.to_string()
|
||||||
version = request.args.get("version")[0]
|
version = parse_string(request, "version")
|
||||||
|
|
||||||
yield self.e2e_room_keys_handler.delete_room_keys(
|
yield self.e2e_room_keys_handler.delete_room_keys(
|
||||||
user_id, version, room_id, session_id
|
user_id, version, room_id, session_id
|
||||||
|
Loading…
Reference in New Issue
Block a user