diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-05-07 02:50:09 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-05-07 02:50:09 -0400 |
commit | 19a2aed0207d823ac605718a88b93dafde7fb292 (patch) | |
tree | 19233cbec1614bc95fa015b2bb17f2e249ae2514 /components | |
parent | d679b1af76a2e7afe8b28317268f95a1d8cdb5e2 (diff) | |
parent | 712e78b0c87346d826b60d1101db8fd09bedf730 (diff) | |
download | abaddon-portaudio-19a2aed0207d823ac605718a88b93dafde7fb292.tar.gz abaddon-portaudio-19a2aed0207d823ac605718a88b93dafde7fb292.zip |
Merge branch 'master' into friends
Diffstat (limited to 'components')
-rw-r--r-- | components/statusindicator.cpp | 4 |
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)); |