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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user