mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 16:46:50 +01:00
ircd:Ⓜ️:event: Relax comparator value checking.
This commit is contained in:
parent
def97cf25b
commit
cfb5376fdb
1 changed files with 5 additions and 5 deletions
|
@ -3721,35 +3721,35 @@ bool
|
|||
ircd::m::operator>=(const event &a, const event &b)
|
||||
{
|
||||
//assert(json::get<"room_id"_>(a) == json::get<"room_id"_>(b));
|
||||
return at<"depth"_>(a) >= at<"depth"_>(b);
|
||||
return json::get<"depth"_>(a) >= json::get<"depth"_>(b);
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::m::operator<=(const event &a, const event &b)
|
||||
{
|
||||
//assert(json::get<"room_id"_>(a) == json::get<"room_id"_>(b));
|
||||
return at<"depth"_>(a) <= at<"depth"_>(b);
|
||||
return json::get<"depth"_>(a) <= json::get<"depth"_>(b);
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::m::operator>(const event &a, const event &b)
|
||||
{
|
||||
//assert(json::get<"room_id"_>(a) == json::get<"room_id"_>(b));
|
||||
return at<"depth"_>(a) > at<"depth"_>(b);
|
||||
return json::get<"depth"_>(a) > json::get<"depth"_>(b);
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::m::operator<(const event &a, const event &b)
|
||||
{
|
||||
//assert(json::get<"room_id"_>(a) == json::get<"room_id"_>(b));
|
||||
return at<"depth"_>(a) < at<"depth"_>(b);
|
||||
return json::get<"depth"_>(a) < json::get<"depth"_>(b);
|
||||
}
|
||||
|
||||
bool
|
||||
ircd::m::operator==(const event &a, const event &b)
|
||||
{
|
||||
//assert(json::get<"room_id"_>(a) == json::get<"room_id"_>(b));
|
||||
return at<"event_id"_>(a) == at<"event_id"_>(b);
|
||||
return json::get<"event_id"_>(a) == json::get<"event_id"_>(b);
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
Loading…
Reference in a new issue