0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-15 14:31:11 +01:00

modules/client/sync/rooms: Elide query for room head/depth for EDU's.

This commit is contained in:
Jason Volk 2019-04-15 14:46:14 -07:00
parent 035e03a35e
commit a70d22151f

View file

@ -71,7 +71,9 @@ ircd::m::sync::rooms_linear(data &data)
const auto room_head
{
m::head_idx(std::nothrow, room)
data.event_idx && room != data.user_room?
m::head_idx(std::nothrow, room):
0UL
};
const scope_restore their_head
@ -81,7 +83,9 @@ ircd::m::sync::rooms_linear(data &data)
const auto room_depth
{
m::depth(std::nothrow, room)
data.event_idx && room != data.user_room?
m::depth(std::nothrow, room):
-1L
};
const scope_restore their_depth