0
0
Fork 0
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:
Jason Volk 2019-08-17 02:45:56 -07:00
parent 45a435d8f9
commit f7796b6c3e

View file

@ -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" },
}); });
} }