From d29243a2a549f5436c2e88621b44ccc330e03002 Mon Sep 17 00:00:00 2001 From: matt <30363562+mmattbtw@users.noreply.github.com> Date: Sun, 5 Jun 2022 15:51:18 -0500 Subject: [PATCH] Removed total views from the usercard (#3792) --- CHANGELOG.md | 1 + src/providers/twitch/api/Helix.hpp | 2 -- src/providers/twitch/api/README.md | 2 +- src/widgets/dialogs/UserInfoPopup.cpp | 6 ------ src/widgets/dialogs/UserInfoPopup.hpp | 1 - 5 files changed, 2 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ccd667591..31f8c4eb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ - Minor: Added `/requests` command. Usage: `/requests [channel]`. Opens the channel points requests queue for the provided channel or the current channel if no input is provided. (#3746) - Minor: Added ability to execute commands on chat messages using the message context menu. (#3738, #3765) - Minor: Added `/copy` command. Usage: `/copy `. Copies provided text to clipboard - can be useful with custom commands. (#3763) +- Minor: Removed total views from the usercard, as Twitch no longer updates the number. (#3792) - Bugfix: Fixed viewers list search not working when used before loading finishes. (#3774) - Bugfix: Fixed live notifications for usernames containing uppercase characters. (#3646) - Bugfix: Fixed live notifications not getting updated for closed streams going offline. (#3678) diff --git a/src/providers/twitch/api/Helix.hpp b/src/providers/twitch/api/Helix.hpp index 878c40eb0..6e7ef55a6 100644 --- a/src/providers/twitch/api/Helix.hpp +++ b/src/providers/twitch/api/Helix.hpp @@ -27,7 +27,6 @@ struct HelixUser { QString createdAt; QString description; QString profileImageUrl; - int viewCount; explicit HelixUser(QJsonObject jsonObject) : id(jsonObject.value("id").toString()) @@ -36,7 +35,6 @@ struct HelixUser { , createdAt(jsonObject.value("created_at").toString()) , description(jsonObject.value("description").toString()) , profileImageUrl(jsonObject.value("profile_image_url").toString()) - , viewCount(jsonObject.value("view_count").toInt()) { } }; diff --git a/src/providers/twitch/api/README.md b/src/providers/twitch/api/README.md index 11fa60fb4..31a7e7424 100644 --- a/src/providers/twitch/api/README.md +++ b/src/providers/twitch/api/README.md @@ -12,7 +12,7 @@ URL: https://dev.twitch.tv/docs/api/reference#get-users Used in: -- `UserInfoPopup` to get ID, viewCount, displayName, createdAt of username we clicked +- `UserInfoPopup` to get ID, displayName, createdAt of username we clicked - `CommandController` to power any commands that need to get a user ID - `Toasts` to get the profile picture of a streamer who just went live - `TwitchAccount` block and unblock features to translate user name to user ID diff --git a/src/widgets/dialogs/UserInfoPopup.cpp b/src/widgets/dialogs/UserInfoPopup.cpp index b2c8bd4f5..957451c0c 100644 --- a/src/widgets/dialogs/UserInfoPopup.cpp +++ b/src/widgets/dialogs/UserInfoPopup.cpp @@ -35,7 +35,6 @@ #include #include -const QString TEXT_VIEWS("Views: %1"); const QString TEXT_FOLLOWERS("Followers: %1"); const QString TEXT_CREATED("Created: %1"); const QString TEXT_TITLE("%1's Usercard - #%2"); @@ -358,8 +357,6 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically, QWidget *parent) } // items on the left - vbox.emplace