summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-05-07 02:49:59 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2021-05-07 02:49:59 -0400
commit712e78b0c87346d826b60d1101db8fd09bedf730 (patch)
tree75d0a84d46b9f460fd3e533647eda096d8bff890 /components
parenta74f66513b123d0d1be6c02f37b9497632509d46 (diff)
downloadabaddon-portaudio-712e78b0c87346d826b60d1101db8fd09bedf730.tar.gz
abaddon-portaudio-712e78b0c87346d826b60d1101db8fd09bedf730.zip
send user data over signal_presence_update
Diffstat (limited to 'components')
-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));