0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 04:38:52 +02:00

modules/federation/send: Undefined the depth value when creating the edu pseudo-event.

This commit is contained in:
Jason Volk 2018-04-08 13:00:35 -07:00
parent 130c4970b6
commit 8bf7c05ed8

View file

@ -37,6 +37,7 @@ handle_edu(client &client,
json::get<"origin_server_ts"_>(event) = at<"origin_server_ts"_>(request);
json::get<"content"_>(event) = at<"content"_>(edu);
json::get<"type"_>(event) = at<"edu_type"_>(edu);
json::get<"depth"_>(event) = std::numeric_limits<int64_t>::max(); // custom undefined
m::vm::opts vmopts;
vmopts.non_conform.set(m::event::conforms::INVALID_OR_MISSING_EVENT_ID);