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

Use login name for NotificationController lookup #3648

Merged
merged 6 commits into from
Apr 6, 2022

Conversation

iProdigy
Copy link
Contributor

@iProdigy iProdigy commented Apr 3, 2022

Pull request checklist:

  • CHANGELOG.md was updated, if applicable

Description

Fixes #3646

  • Add userLogin, gameName to HelixStream
  • Store userLogin instead of userName from streams response
  • Lookup lowercase name in liveStreams set

@iProdigy
Copy link
Contributor Author

iProdigy commented Apr 3, 2022

Aside: this logic can be simplified now due to the gameName field, but someone else can do this refactor

@Mm2PL
Copy link
Collaborator

Mm2PL commented Apr 3, 2022

I'd say that a bugfix changelog entry is good for this. Also looks like this is my fault, added in #3442

@Felanbird
Copy link
Collaborator

I'd say that a bugfix changelog entry is good for this. Also looks like this is my fault, added in #3442

I took the assumption of Work towards meaning that another PR would be required to fix the underlying issue - and if necessary that changelog could include (#thisPR, #thatPR)

but as I test this PR I can see the calls are already fixed 🙂
image

@iProdigy
Copy link
Contributor Author

iProdigy commented Apr 3, 2022

Thanks for the confirmation felan, was planning to review the logic in NotificationController::checkStream if this alone didn't fix it

have added a changelog entry now

Copy link
Collaborator

@Felanbird Felanbird left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue is resolved - live notifications follow the specified case-sensitivity, but use intended display-name casing when the tab is open.

image

image

CHANGELOG.md Outdated Show resolved Hide resolved
@pajlada pajlada enabled auto-merge (squash) April 6, 2022 20:51
@pajlada pajlada merged commit 870aa74 into Chatterino:master Apr 6, 2022
@iProdigy iProdigy deleted the fix/live-status-login branch April 6, 2022 21:11
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.

Live status Helix call now requires displayname capitalization
4 participants