Chatterino / chatterino2

Chat client for https://twitch.tv
MIT License
2.02k stars 445 forks source link

Opening usercards from system messages uses "multichannel" channel context #5569

Open jupjohn opened 2 weeks ago

jupjohn commented 2 weeks ago

Checklist

Describe your issue

When searching through the global "all channel" search and opening the usercard from a system message (e.g. a ban), the usercard opens a popout URL with the channel name "multichannel"

Screenshots

image

OS and Chatterino Version

Chatterino 2.5.1 (commit f42bb7312) built with Qt 6.7.2 Running on Arch Linux, kernel: 6.10.6-zen1-1-zen

Mm2PL commented 2 weeks ago

Can replicate after some fiddling. The global search is a crucial part of this.

Chatterino 2.5.1 DEBUG (commit 9a8e943e7 modified) built with Qt 5.15.14 Running on Arch Linux, kernel: 6.10.6-arch1-1

Mm2PL commented 2 weeks ago

This makes sense because the user card is opened with the context of the multichannel search, it just doesn't know that its primary channel is where the user was banned. You can see the usercard has the name %s's Usercard - #multichannel.

Same is true for twitch user pages opened via middleclicking a username (but not when opening one through the usercard).