diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-06-14 02:04:39 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-06-14 02:04:39 -0400 |
commit | 00dddf410e8aa9df64d323211e9dcdf4309f06a1 (patch) | |
tree | 6843177261c7cd2b2ad095c86d099ef2e6d6467e /src/components/friendslist.cpp | |
parent | 878616e2efaa9a4fa1fa6b5e7dd376eb0dd1c79a (diff) | |
download | abaddon-portaudio-00dddf410e8aa9df64d323211e9dcdf4309f06a1.tar.gz abaddon-portaudio-00dddf410e8aa9df64d323211e9dcdf4309f06a1.zip |
convert a bunch of .Username accesses to proper access
Diffstat (limited to 'src/components/friendslist.cpp')
-rw-r--r-- | src/components/friendslist.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/friendslist.cpp b/src/components/friendslist.cpp index 5839b65..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); |