mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 09:40:12 +01:00
ircd:Ⓜ️:room::state: Simplify api usage in rebuild_present().
This commit is contained in:
parent
47f496a155
commit
118ed69ed3
1 changed files with 1 additions and 16 deletions
|
@ -135,24 +135,9 @@ size_t
|
|||
ircd::m::room::state::rebuild_present(const state &state)
|
||||
{
|
||||
size_t ret{0};
|
||||
const auto create_idx
|
||||
{
|
||||
state.get("m.room.create")
|
||||
};
|
||||
|
||||
static const m::event::fetch::opts fopts
|
||||
{
|
||||
{ db::get::NO_CACHE }
|
||||
};
|
||||
|
||||
const m::room room
|
||||
{
|
||||
state.room_id, nullptr, state.fopts
|
||||
};
|
||||
|
||||
m::room::messages it
|
||||
{
|
||||
room, create_idx, &fopts
|
||||
state.room_id, uint64_t(0)
|
||||
};
|
||||
|
||||
if(!it)
|
||||
|
|
Loading…
Add table
Reference in a new issue