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
2 changed files with 6 additions and 2 deletions
+5 -2
View File
@@ -239,8 +239,11 @@ void NativeMessagingServer::ReceiverThread::handleMessage(
postToThread([=] {
if (!name.isEmpty())
{
app->twitch->watchingChannel.reset(
app->twitch->getOrAddChannel(name));
auto channel = app->twitch->getOrAddChannel(name);
if (app->twitch->watchingChannel.get() != channel)
{
app->twitch->watchingChannel.reset(channel);
}
}
if (attach || attachFullscreen)