0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-27 11:18:51 +02:00

modules/m_presence: Modernize; remove old flag.

This commit is contained in:
Jason Volk 2019-08-11 04:09:42 -07:00
parent f14a23aaf6
commit f8df61536a

View file

@ -250,14 +250,7 @@ ircd::m::presence::get(const std::nothrow_t,
user_room
};
m::event::idx ret{0};
state.get(std::nothrow, "ircd.presence", "", [&ret]
(const m::event::idx &event_idx)
{
ret = event_idx;
});
return ret;
return state.get(std::nothrow, "ircd.presence", "");
}
m::event::id::buf
@ -274,7 +267,6 @@ ircd::m::presence::set(const m::presence &content)
create(user.user_id);
m::vm::copts copts;
copts.history = false;
const m::user::room user_room
{
user, &copts