mirror of
https://github.com/matrix-construct/construct
synced 2024-11-18 07:50:57 +01:00
modules/federation/send: Undefined the depth value when creating the edu pseudo-event.
This commit is contained in:
parent
130c4970b6
commit
8bf7c05ed8
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ handle_edu(client &client,
|
||||||
json::get<"origin_server_ts"_>(event) = at<"origin_server_ts"_>(request);
|
json::get<"origin_server_ts"_>(event) = at<"origin_server_ts"_>(request);
|
||||||
json::get<"content"_>(event) = at<"content"_>(edu);
|
json::get<"content"_>(event) = at<"content"_>(edu);
|
||||||
json::get<"type"_>(event) = at<"edu_type"_>(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;
|
m::vm::opts vmopts;
|
||||||
vmopts.non_conform.set(m::event::conforms::INVALID_OR_MISSING_EVENT_ID);
|
vmopts.non_conform.set(m::event::conforms::INVALID_OR_MISSING_EVENT_ID);
|
||||||
|
|
Loading…
Reference in a new issue