mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
modules/federation/get_missing_events: Fix unwrapped prev_events iteration.
This commit is contained in:
parent
f6f71fbbce
commit
3b088e8bc1
1 changed files with 3 additions and 2 deletions
|
@ -166,8 +166,9 @@ get__missing_events(client &client,
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
events.append(event);
|
events.append(event);
|
||||||
for(const json::array &prev : json::get<"prev_events"_>(event))
|
const m::event::prev prev(event);
|
||||||
if(!add_queue(unquote(prev.at(0))))
|
for(size_t i(0); i < prev.prev_events_count(); ++i)
|
||||||
|
if(!add_queue(prev.prev_event(i)))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue