mirror of
https://github.com/matrix-construct/construct
synced 2024-10-04 22:58:52 +02:00
modules/client/sync/rooms/timeline: Bail faster if no room head idx found.
This commit is contained in:
parent
08940bddaf
commit
11af393444
1 changed files with 2 additions and 1 deletions
|
@ -104,12 +104,13 @@ ircd::m::sync::room_timeline_polylog(data &data)
|
||||||
data.out
|
data.out
|
||||||
};
|
};
|
||||||
|
|
||||||
|
assert(data.room);
|
||||||
const auto head_idx
|
const auto head_idx
|
||||||
{
|
{
|
||||||
m::head_idx(std::nothrow, *data.room)
|
m::head_idx(std::nothrow, *data.room)
|
||||||
};
|
};
|
||||||
|
|
||||||
if(!apropos(data, head_idx))
|
if(!head_idx || !apropos(data, head_idx))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// events
|
// events
|
||||||
|
|
Loading…
Reference in a new issue