0
0
Fork 0
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:
Jason Volk 2019-05-07 15:28:25 -07:00
parent 47f496a155
commit 118ed69ed3

View file

@ -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)