From d56241657fede51229e8c7f1253c4db3390f220f Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Mon, 21 May 2018 17:46:19 -0700 Subject: [PATCH] modules/federation/sender: Use json::undefined_integer here. --- modules/federation/sender.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/federation/sender.cc b/modules/federation/sender.cc index 1c665c95d..878c43278 100644 --- a/modules/federation/sender.cc +++ b/modules/federation/sender.cc @@ -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); }