mirror of
https://github.com/matrix-construct/construct
synced 2025-01-01 02:14:13 +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)
|
||||
{
|
||||
const m::event &event{*it};
|
||||
if(!defined(json::get<"state_key"_>(event)))
|
||||
const m::event::idx &event_idx{it};
|
||||
if(!state.is(std::nothrow, event_idx))
|
||||
continue;
|
||||
|
||||
const m::event &event{*it};
|
||||
m::dbs::write_opts opts;
|
||||
opts.event_idx = it.event_idx();
|
||||
opts.event_idx = event_idx;
|
||||
opts.present = true;
|
||||
opts.history = false;
|
||||
opts.room_head = false;
|
||||
|
|
Loading…
Reference in a new issue