-
-
Notifications
You must be signed in to change notification settings - Fork 449
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
Hide the Usercard button in the User Info Popup in special channels #4972
Conversation
if (auto *tc = dynamic_cast<TwitchChannel *>(this->channel_.get()); | ||
tc == nullptr) | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will also hide button from /mentions or search where it works as expected,
could be changed to check if channel type is TwitchWhispers
or TwitchLive
The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested this & made sure it opened as expected in:
- Normal Twitch channels - it correctly shows the button
/mentions
- it correctly shows the button & uses the channel the message was originally sent in/whispers
- it correctly hides the button, previously it would show the button & take me tohttps://www.twitch.tv/popout//whispers/viewercard/testaccount_420
/automod
- it currectly shows the button & uses the channel the offending message was sent in/live
- it correctly hides the button, previously it would show the button & take me tohttps://www.twitch.tv/popout//live/viewercard/pajlada
I have not tried /watching
since I'm on Linux btw
Description
Closes #550.