feat: Use streamer profile picture for shared chat badge (#5760)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
Co-authored-by: Nerixyz <nerixdev@outlook.de>
This commit is contained in:
treuks
2025-03-22 13:45:47 +02:00
committed by GitHub
parent 584cd275fa
commit 9d0de1c373
5 changed files with 53 additions and 9 deletions
+1
View File
@@ -18,6 +18,7 @@ void TwitchUser::update(const HelixUser &user) const
assert(this->id == user.id);
this->name = user.login;
this->displayName = user.displayName;
this->profilePictureUrl = user.profileImageUrl;
}
} // namespace chatterino
+2
View File
@@ -18,6 +18,7 @@ struct TwitchUser {
QString id;
mutable QString name;
mutable QString displayName;
mutable QString profilePictureUrl;
void update(const TwitchUser &other) const
{
@@ -25,6 +26,7 @@ struct TwitchUser {
this->name = other.name;
this->displayName = other.displayName;
this->profilePictureUrl = other.profilePictureUrl;
}
void update(const HelixUser &user) const;
+1
View File
@@ -82,6 +82,7 @@ std::shared_ptr<TwitchUser> TwitchUsersPrivate::makeUnresolved(const UserId &id)
.id = id.string,
.name = {},
.displayName = {},
.profilePictureUrl = {},
}))
.first->second;
if (id.string.isEmpty())