0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 23:14:13 +01:00

modules/federation/sender: Use json::undefined_integer here.

This commit is contained in:
Jason Volk 2018-05-21 17:46:19 -07:00
parent 6be37c7aa6
commit d56241657f

View file

@ -90,6 +90,9 @@ send(const m::event &event)
json::get<"room_id"_>(event)
};
if(json::get<"depth"_>(event) == json::undefined_number)
return;
if(room_id)
return send(event, room_id);
}