mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01: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
|
||||
};
|
||||
|
||||
assert(data.room);
|
||||
const auto head_idx
|
||||
{
|
||||
m::head_idx(std::nothrow, *data.room)
|
||||
};
|
||||
|
||||
if(!apropos(data, head_idx))
|
||||
if(!head_idx || !apropos(data, head_idx))
|
||||
return;
|
||||
|
||||
// events
|
||||
|
|
Loading…
Reference in a new issue