From 0772e462bb94e59109fc388df7b2bbb75d483112 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 1 Jun 2019 17:52:52 -0700 Subject: [PATCH] ircd::m::event: Relax the comparison operator room_id assertion. --- ircd/m_event.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ircd/m_event.cc b/ircd/m_event.cc index 0c0e76c7b..f4495e315 100644 --- a/ircd/m_event.cc +++ b/ircd/m_event.cc @@ -3716,35 +3716,35 @@ ircd::m::before(const event &a, bool ircd::m::operator>=(const event &a, const event &b) { - assert(json::get<"room_id"_>(a) == json::get<"room_id"_>(b)); + //assert(json::get<"room_id"_>(a) == json::get<"room_id"_>(b)); return at<"depth"_>(a) >= at<"depth"_>(b); } bool ircd::m::operator<=(const event &a, const event &b) { - assert(json::get<"room_id"_>(a) == json::get<"room_id"_>(b)); + //assert(json::get<"room_id"_>(a) == json::get<"room_id"_>(b)); return at<"depth"_>(a) <= at<"depth"_>(b); } bool ircd::m::operator>(const event &a, const event &b) { - assert(json::get<"room_id"_>(a) == json::get<"room_id"_>(b)); + //assert(json::get<"room_id"_>(a) == json::get<"room_id"_>(b)); return at<"depth"_>(a) > at<"depth"_>(b); } bool ircd::m::operator<(const event &a, const event &b) { - assert(json::get<"room_id"_>(a) == json::get<"room_id"_>(b)); + //assert(json::get<"room_id"_>(a) == json::get<"room_id"_>(b)); return at<"depth"_>(a) < at<"depth"_>(b); } bool ircd::m::operator==(const event &a, const event &b) { - assert(json::get<"room_id"_>(a) == json::get<"room_id"_>(b)); + //assert(json::get<"room_id"_>(a) == json::get<"room_id"_>(b)); return at<"event_id"_>(a) == at<"event_id"_>(b); }