mtx::events::presence::Presence struct

The m.presence ephemeral event.

Public variables

std::string displayname
The current avatar URL for this user, if any.
uint64_t last_active_ago
The current display name for this user, if any.
mtx::presence::PresenceState presence
The last time since this used performed some action, in milliseconds.
bool currently_active
Required. The presence state for this user. One of: ["online", "offline", "unavailable"].
std::string status_msg
Whether the user is currently active.

Friends

void from_json(const nlohmann::json& obj, Presence& presence)
An optional description to accompany the presence.