Skip to content
Snippets Groups Projects
Commit 288f5857 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Make sender_key in key requests optional

parent a083b989
No related branches found
No related tags found
No related merge requests found
Pipeline #2964 passed
......@@ -187,7 +187,7 @@ from_json(const json &obj, KeyRequest &event)
if (action == "request") {
event.action = RequestAction::Request;
event.room_id = obj.at("body").at("room_id");
event.sender_key = obj.at("body").at("sender_key");
event.sender_key = obj.at("body").value("sender_key", "");
event.session_id = obj.at("body").at("session_id");
event.algorithm = obj.at("body").at("algorithm");
} else if (action == "request_cancellation") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment