0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

ircd:Ⓜ️:room: Fix regressions.

This commit is contained in:
Jason Volk 2019-02-05 02:20:14 -08:00
parent 00c88ca073
commit d7c68d2fb7

View file

@ -727,7 +727,7 @@ ircd::m::room::messages::seek(const event::id &event_id)
{ {
const event::idx &event_idx const event::idx &event_idx
{ {
index(event_id, std::nothrow) m::index(event_id, std::nothrow)
}; };
return event_idx? return event_idx?
@ -983,7 +983,7 @@ const try
m::state::get(root_id, type, state_key, [&closure] m::state::get(root_id, type, state_key, [&closure]
(const string_view &event_id) (const string_view &event_id)
{ {
closure(index(unquote(event_id))); closure(index(m::event::id(unquote(event_id))));
}); });
auto &column{dbs::room_state}; auto &column{dbs::room_state};
@ -1057,7 +1057,7 @@ const
return m::state::get(std::nothrow, root_id, type, state_key, [&closure] return m::state::get(std::nothrow, root_id, type, state_key, [&closure]
(const string_view &event_id) (const string_view &event_id)
{ {
return closure(index(unquote(event_id), std::nothrow)); return closure(index(m::event::id(unquote(event_id)), std::nothrow));
}); });
auto &column{dbs::room_state}; auto &column{dbs::room_state};
@ -1207,7 +1207,7 @@ const
return m::state::for_each(root_id, m::state::iter_bool_closure{[&closure] return m::state::for_each(root_id, m::state::iter_bool_closure{[&closure]
(const json::array &key, const string_view &event_id) (const json::array &key, const string_view &event_id)
{ {
return closure(index(unquote(event_id), std::nothrow)); return closure(index(m::event::id(unquote(event_id)), std::nothrow));
}}); }});
db::gopts opts db::gopts opts
@ -1354,7 +1354,7 @@ const
return m::state::for_each(root_id, type, state_key_lb, [&closure] return m::state::for_each(root_id, type, state_key_lb, [&closure]
(const json::array &key, const string_view &event_id) (const json::array &key, const string_view &event_id)
{ {
return closure(index(unquote(event_id), std::nothrow)); return closure(index(m::event::id(unquote(event_id)), std::nothrow));
}); });
char keybuf[dbs::ROOM_STATE_KEY_MAX_SIZE]; char keybuf[dbs::ROOM_STATE_KEY_MAX_SIZE];