chore: replace usages of obsolete twitch struct with backing field (#3614)
Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
This commit is contained in:
@@ -482,7 +482,7 @@ bool TwitchChannel::canReconnect() const
|
||||
|
||||
void TwitchChannel::reconnect()
|
||||
{
|
||||
getApp()->twitch.server->connect();
|
||||
getApp()->twitch->connect();
|
||||
}
|
||||
|
||||
QString TwitchChannel::roomId() const
|
||||
@@ -611,7 +611,7 @@ void TwitchChannel::setLive(bool newLiveStatus)
|
||||
MessageBuilder builder2;
|
||||
TwitchMessageBuilder::liveMessage(this->getDisplayName(),
|
||||
&builder2);
|
||||
getApp()->twitch2->liveChannel->addMessage(builder2.release());
|
||||
getApp()->twitch->liveChannel->addMessage(builder2.release());
|
||||
|
||||
// Notify on all channels with a ping sound
|
||||
if (getSettings()->notificationOnAnyChannel &&
|
||||
@@ -631,7 +631,7 @@ void TwitchChannel::setLive(bool newLiveStatus)
|
||||
|
||||
// "delete" old 'CHANNEL is live' message
|
||||
LimitedQueueSnapshot<MessagePtr> snapshot =
|
||||
getApp()->twitch2->liveChannel->getMessageSnapshot();
|
||||
getApp()->twitch->liveChannel->getMessageSnapshot();
|
||||
int snapshotLength = snapshot.size();
|
||||
|
||||
// MSVC hates this code if the parens are not there
|
||||
@@ -877,10 +877,9 @@ void TwitchChannel::refreshPubsub()
|
||||
return;
|
||||
|
||||
auto account = getApp()->accounts->twitch.getCurrent();
|
||||
getApp()->twitch2->pubsub->listenToChannelModerationActions(roomId,
|
||||
account);
|
||||
getApp()->twitch2->pubsub->listenToAutomod(roomId, account);
|
||||
getApp()->twitch2->pubsub->listenToChannelPointRewards(roomId, account);
|
||||
getApp()->twitch->pubsub->listenToChannelModerationActions(roomId, account);
|
||||
getApp()->twitch->pubsub->listenToAutomod(roomId, account);
|
||||
getApp()->twitch->pubsub->listenToChannelPointRewards(roomId, account);
|
||||
}
|
||||
|
||||
void TwitchChannel::refreshChatters()
|
||||
|
||||
Reference in New Issue
Block a user