diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-06-13 22:25:25 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-06-13 22:25:25 -0400 |
commit | 5d9f7832d7ce73db75a58db0a3b798f24d147578 (patch) | |
tree | 923da6ff3d45e5537eb38adfb3f18ebede4a0608 /src/discord | |
parent | e097342f5558aa4b0d313f0cde707d56b2f6df58 (diff) | |
download | abaddon-portaudio-5d9f7832d7ce73db75a58db0a3b798f24d147578.tar.gz abaddon-portaudio-5d9f7832d7ce73db75a58db0a3b798f24d147578.zip |
use display name for DMs in channel list
Diffstat (limited to 'src/discord')
-rw-r--r-- | src/discord/channel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/discord/channel.cpp b/src/discord/channel.cpp index 4b1d909..a7102ad 100644 --- a/src/discord/channel.cpp +++ b/src/discord/channel.cpp @@ -147,13 +147,13 @@ std::string ChannelData::GetRecipientsDisplay() const { const auto recipients = GetDMRecipients(); if (Type == ChannelType::DM && !recipients.empty()) { - return recipients[0].Username; + return recipients[0].GetDisplayName(); } Glib::ustring r; for (size_t i = 0; i < recipients.size(); i++) { const auto &recipient = recipients[i]; - r += recipient.Username; + r += recipient.GetDisplayName(); if (i < recipients.size() - 1) { r += ", "; } |