mirror of
https://github.com/matrix-construct/construct
synced 2024-11-15 14:31:11 +01:00
modules/m_presence: Modernize; remove old flag.
This commit is contained in:
parent
f14a23aaf6
commit
f8df61536a
1 changed files with 1 additions and 9 deletions
|
@ -250,14 +250,7 @@ ircd::m::presence::get(const std::nothrow_t,
|
||||||
user_room
|
user_room
|
||||||
};
|
};
|
||||||
|
|
||||||
m::event::idx ret{0};
|
return state.get(std::nothrow, "ircd.presence", "");
|
||||||
state.get(std::nothrow, "ircd.presence", "", [&ret]
|
|
||||||
(const m::event::idx &event_idx)
|
|
||||||
{
|
|
||||||
ret = event_idx;
|
|
||||||
});
|
|
||||||
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
m::event::id::buf
|
m::event::id::buf
|
||||||
|
@ -274,7 +267,6 @@ ircd::m::presence::set(const m::presence &content)
|
||||||
create(user.user_id);
|
create(user.user_id);
|
||||||
|
|
||||||
m::vm::copts copts;
|
m::vm::copts copts;
|
||||||
copts.history = false;
|
|
||||||
const m::user::room user_room
|
const m::user::room user_room
|
||||||
{
|
{
|
||||||
user, &copts
|
user, &copts
|
||||||
|
|
Loading…
Reference in a new issue