fix: /watching channel jumping around (#4169)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
nerix 2022-11-20 17:02:21 +01:00 committed by GitHub
parent 82d345bc76
commit ba4422b082
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -123,6 +123,7 @@
- Bugfix: Fixed invalid/dangling completion when cycling through previous messages or replying (#4072) - Bugfix: Fixed invalid/dangling completion when cycling through previous messages or replying (#4072)
- Bugfix: Fixed incorrect .desktop icon path. (#4078) - Bugfix: Fixed incorrect .desktop icon path. (#4078)
- Bugfix: Mark bad or invalid images as empty. (#4151) - Bugfix: Mark bad or invalid images as empty. (#4151)
- Bugfix: Fixed `/watching` channel jumping around. (#4169)
- Dev: Got rid of BaseTheme (#4132) - Dev: Got rid of BaseTheme (#4132)
- Dev: Removed official support for QMake. (#3839, #3883) - Dev: Removed official support for QMake. (#3839, #3883)
- Dev: Rewrote LimitedQueue (#3798) - Dev: Rewrote LimitedQueue (#3798)

View file

@ -239,8 +239,11 @@ void NativeMessagingServer::ReceiverThread::handleMessage(
postToThread([=] { postToThread([=] {
if (!name.isEmpty()) if (!name.isEmpty())
{ {
app->twitch->watchingChannel.reset( auto channel = app->twitch->getOrAddChannel(name);
app->twitch->getOrAddChannel(name)); if (app->twitch->watchingChannel.get() != channel)
{
app->twitch->watchingChannel.reset(channel);
}
} }
if (attach || attachFullscreen) if (attach || attachFullscreen)