diff --git a/CHANGELOG.md b/CHANGELOG.md index 657a9085a..667f076b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unversioned +- Minor: Made usercard update user's display name (#2160) - Minor: Added placeholder text for message text input box. (#2143, #2149) - Minor: Added support for FrankerFaceZ badges. (#2101, part of #1658) - Minor: Added a navigation list to the settings and reordered them. diff --git a/src/providers/twitch/api/Kraken.hpp b/src/providers/twitch/api/Kraken.hpp index 1a5f40131..c2996347d 100644 --- a/src/providers/twitch/api/Kraken.hpp +++ b/src/providers/twitch/api/Kraken.hpp @@ -25,9 +25,11 @@ struct KrakenChannel { struct KrakenUser { const QString createdAt; + const QString displayName; KrakenUser(QJsonObject jsonObject) : createdAt(jsonObject.value("created_at").toString()) + , displayName(jsonObject.value("display_name").toString()) { } }; diff --git a/src/widgets/dialogs/UserInfoPopup.cpp b/src/widgets/dialogs/UserInfoPopup.cpp index 06e9533e3..d9de1ed86 100644 --- a/src/widgets/dialogs/UserInfoPopup.cpp +++ b/src/widgets/dialogs/UserInfoPopup.cpp @@ -586,6 +586,8 @@ void UserInfoPopup::updateUserData() { return; } + this->ui_.nameLabel->setText(user.displayName); + this->setWindowTitle(TEXT_TITLE.arg(user.displayName)); this->ui_.createdDateLabel->setText( TEXT_CREATED.arg(user.createdAt.section("T", 0, 0))); },