diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-06-25 05:53:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-25 05:53:59 +0000 |
commit | 66101a25cbe4739ade20484c2a020b9130125ec3 (patch) | |
tree | f1f3a2084677d90a37d1c4e3b17a19a606fe8d90 /src/components/friendslist.cpp | |
parent | ba24e13419bfa6efd08a0d07f049a6981ff4cd28 (diff) | |
parent | 19f7d55c8748e4fcd651540e299347689a2070ad (diff) | |
download | abaddon-portaudio-66101a25cbe4739ade20484c2a020b9130125ec3.tar.gz abaddon-portaudio-66101a25cbe4739ade20484c2a020b9130125ec3.zip |
Merge pull request #176 from uowuo/pomelo
pomelo support (and nicknames)
Diffstat (limited to 'src/components/friendslist.cpp')
-rw-r--r-- | src/components/friendslist.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/components/friendslist.cpp b/src/components/friendslist.cpp index d8a566f..99fbafa 100644 --- a/src/components/friendslist.cpp +++ b/src/components/friendslist.cpp @@ -117,16 +117,16 @@ void FriendsList::OnActionRemove(Snowflake id) { Glib::ustring str; switch (*discord.GetRelationship(id)) { case RelationshipType::Blocked: - str = "Are you sure you want to unblock " + user->Username + "#" + user->Discriminator + "?"; + str = "Are you sure you want to unblock " + user->GetUsername() + "?"; break; case RelationshipType::Friend: - str = "Are you sure you want to remove " + user->Username + "#" + user->Discriminator + "?"; + str = "Are you sure you want to remove " + user->GetUsername() + "?"; break; case RelationshipType::PendingIncoming: - str = "Are you sure you want to ignore " + user->Username + "#" + user->Discriminator + "?"; + str = "Are you sure you want to ignore " + user->GetUsername() + "?"; break; case RelationshipType::PendingOutgoing: - str = "Are you sure you want to cancel your request to " + user->Username + "#" + user->Discriminator + "?"; + str = "Are you sure you want to cancel your request to " + user->GetUsername() + "?"; break; default: break; @@ -244,7 +244,7 @@ bool FriendsListAddComponent::OnKeyPress(GdkEventKey *e) { FriendsListFriendRow::FriendsListFriendRow(RelationshipType type, const UserData &data) : ID(data.ID) , Type(type) - , Name(data.Username + "#" + data.Discriminator) + , Name(data.GetUsername()) , Status(Abaddon::Get().GetDiscordClient().GetUserStatus(data.ID)) , m_accept("Accept") { auto *ev = Gtk::manage(new Gtk::EventBox); @@ -265,7 +265,7 @@ FriendsListFriendRow::FriendsListFriendRow(RelationshipType type, const UserData img->SetURL(data.GetAvatarURL("png", "32")); } - namelbl->set_markup(data.GetEscapedBoldName()); + namelbl->set_markup(data.GetDisplayNameEscapedBold()); UpdatePresenceLabel(); |