summaryrefslogtreecommitdiff
path: root/components/statusindicator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'components/statusindicator.cpp')
-rw-r--r--components/statusindicator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/statusindicator.cpp b/components/statusindicator.cpp
index 6e7e0fb..a0616c0 100644
--- a/components/statusindicator.cpp
+++ b/components/statusindicator.cpp
@@ -18,8 +18,8 @@ StatusIndicator::StatusIndicator(Snowflake user_id)
get_style_context()->add_class("status-indicator");
Abaddon::Get().GetDiscordClient().signal_guild_member_list_update().connect(sigc::hide(sigc::mem_fun(*this, &StatusIndicator::CheckStatus)));
- auto cb = [this](Snowflake id, PresenceStatus status) {
- if (id == m_id) CheckStatus();
+ auto cb = [this](const UserData &user, PresenceStatus status) {
+ if (user.ID == m_id) CheckStatus();
};
Abaddon::Get().GetDiscordClient().signal_presence_update().connect(sigc::track_obj(cb, *this));