mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
ircd:Ⓜ️:presence: Set the currently_active flag in convenience composer.
This commit is contained in:
parent
45a435d8f9
commit
f7796b6c3e
1 changed files with 4 additions and 3 deletions
|
@ -1830,9 +1830,10 @@ ircd::m::presence::set(const user &user,
|
||||||
{
|
{
|
||||||
return set(m::presence
|
return set(m::presence
|
||||||
{
|
{
|
||||||
{ "user_id", user.user_id },
|
{ "user_id", user.user_id },
|
||||||
{ "presence", presence },
|
{ "presence", presence },
|
||||||
{ "status_msg", status_msg },
|
{ "status_msg", status_msg },
|
||||||
|
{ "currently_active", presence == "online" },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue