mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 15:00:51 +01:00
modules/federation/sender: Use json::undefined_integer here.
This commit is contained in:
parent
6be37c7aa6
commit
d56241657f
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue