mirror of
https://github.com/matrix-construct/construct
synced 2025-01-05 20:34:29 +01:00
ircd:Ⓜ️:room::state: Minor improve rebuild_present() util.
This commit is contained in:
parent
8e90f8de5d
commit
22077b58b9
1 changed files with 4 additions and 3 deletions
|
@ -165,12 +165,13 @@ ircd::m::room::state::rebuild_present(const state &state)
|
||||||
|
|
||||||
for(; it; ++it)
|
for(; it; ++it)
|
||||||
{
|
{
|
||||||
const m::event &event{*it};
|
const m::event::idx &event_idx{it};
|
||||||
if(!defined(json::get<"state_key"_>(event)))
|
if(!state.is(std::nothrow, event_idx))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
const m::event &event{*it};
|
||||||
m::dbs::write_opts opts;
|
m::dbs::write_opts opts;
|
||||||
opts.event_idx = it.event_idx();
|
opts.event_idx = event_idx;
|
||||||
opts.present = true;
|
opts.present = true;
|
||||||
opts.history = false;
|
opts.history = false;
|
||||||
opts.room_head = false;
|
opts.room_head = false;
|
||||||
|
|
Loading…
Reference in a new issue