channels now PART when they are destroyed
This commit is contained in:
@@ -146,7 +146,7 @@ void NativeMessagingManager::ReceiverThread::handleMessage(const QJsonObject &ro
|
||||
util::postToThread([name] {
|
||||
auto &ts = providers::twitch::TwitchServer::getInstance();
|
||||
|
||||
ts.watchingChannel.update(ts.addChannel(name));
|
||||
ts.watchingChannel.update(ts.getOrAddChannel(name));
|
||||
});
|
||||
} else {
|
||||
qDebug() << "NM unknown channel type";
|
||||
|
||||
@@ -317,7 +317,7 @@ IndirectChannel WindowManager::decodeChannel(const QJsonObject &obj)
|
||||
{
|
||||
QString type = obj.value("type").toString();
|
||||
if (type == "twitch") {
|
||||
return providers::twitch::TwitchServer::getInstance().addChannel(
|
||||
return providers::twitch::TwitchServer::getInstance().getOrAddChannel(
|
||||
obj.value("name").toString());
|
||||
} else if (type == "mentions") {
|
||||
return providers::twitch::TwitchServer::getInstance().mentionsChannel;
|
||||
|
||||
Reference in New Issue
Block a user