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: use message's original channel name when usercard popout is opened #3623
feat: use message's original channel name when usercard popout is opened #3623
Conversation
oh yeah, fixes #2248 |
This reverts commit 5bfb9e4.
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.
Functionality works as intended, fixing the original issue. 👍
requests to ivr api are also currently broken on /mentions tab due to same underlying issue. Can be fixed in scope of this PR here:
|
Good catch, thanks! Will fix it later today. |
…d-popout-ctx' into feature/2248-mentions-usercard-popout-ctx
and one more with same problem - middle mouse button on username chatterino2/src/widgets/helper/ChannelView.cpp Line 1719 in 495f4b1
|
I'm wondering if it's worth rejigging this to pass through the original @Mm2PL thoughts? |
While in debug mode the application crashes when the target channel is closed and you attempt to open the usercard in Normal mode does not crash you just receive a nice |
I was holding-off on reviewing this PR as I wasn't sure if I wanted the |
There should've been a nullptr check when trying to get the channel from a weak pointer - I wouldn't expect it to crash. Will look into it later today |
@Felanbird should be resolved. If the channel wasn't found I was passing an empty channel but not checking that on the other side. Have tested and works. |
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.
…ns-usercard-popout-ctx
Pull request checklist:
CHANGELOG.md
was updated, if applicableDescription
This PR aims to fix an issue where opening a user's popout from the usercard in a non-user channel (/mentions) doesnt open use the channel's name. This caused the popout to have an invalid path and 404.
I'm not saying my fix is 'correct', but it's the best I can do without either passing too much info down or reworking it for the sake of a popout.
Fixes #2248