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:
parent
035e03a35e
commit
a70d22151f
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue