From 712e78b0c87346d826b60d1101db8fd09bedf730 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Fri, 7 May 2021 02:49:59 -0400 Subject: send user data over signal_presence_update --- components/statusindicator.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components') 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)); -- cgit v1.2.3