mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd:Ⓜ️:dbs: Fix unwrapped prev_events iteration in indexer.
This commit is contained in:
parent
735d1980ff
commit
4bbe07c95c
1 changed files with 2 additions and 2 deletions
|
@ -1243,11 +1243,11 @@ ircd::m::dbs::_index_room_head_resolve(db::txn &txn,
|
|||
return;
|
||||
|
||||
const event::prev prev{event};
|
||||
for(const json::array &p : json::get<"prev_events"_>(prev))
|
||||
for(size_t i(0); i < prev.prev_events_count(); ++i)
|
||||
{
|
||||
const auto &event_id
|
||||
{
|
||||
unquote(p.at(0))
|
||||
prev.prev_event(i)
|
||||
};
|
||||
|
||||
thread_local char buf[ROOM_HEAD_KEY_MAX_SIZE];
|
||||
|
|
Loading…
Reference in a new issue