Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add a basic implementation of shared chat profile pictures #5760

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

treuks
Copy link
Contributor

@treuks treuks commented Dec 7, 2024

This PR adds small(ish) profile pictures next to the badges of the users, to make it easy to tell from which chat the message came from at a quick glance:

image

The biggest problems with this implementation, and the ones which need to be fixed ASAP are:

  • It stores the URL of the profile picture on the TwitchUser class for each user, which may or may not increase the ram usage.
  • It uses a hard-coded replacement of the 300x300 size which is, while seemingly consistent across channels, just looks very bad.
  • Quite a bit of code duplication.
  • Some inconsistent variable naming.

Besides that, from the minimal amount of testing I've done, it seems to be pretty usable.

The biggest problems with this implementation, and the ones which need
to be fixed ASAP are:
* It stores the URL of the profile picture on the TwitchUser class
for each user, which may or may not increase the ram usage.
* It uses a hard-coded replacement of the 300x300 size which is, while
seemingly consistent across channels, just looks very bad.
* Quite a bit of code duplication.
* Some inconsistent variable naming.

Besides that, from the minimal amount of testing I've done, it seems
to be pretty usable.
@Felanbird
Copy link
Collaborator

Felanbird commented Dec 14, 2024

functionally seems fine, the badge being larger than other badges makes me crave death

edit: when a channel from the shared chat pool is also open in Chatterino, their badge is not loaded

imaqtpie: disguisedtoast ✔️ emilyywang ✔️ scarra ❌
scarra: disguisedtoast ✔️ emilyywang ✔️ imaqtpie ❌

I opened emilyywang's channel while trying to figure out this problem, and her badge unloaded from imaqtpie & scarra, closing her channel instantly restored it to the other channels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants