dev: correct handling of eventsubs without any account (#6503)
This commit is contained in:
@@ -1555,6 +1555,20 @@ void TwitchChannel::refreshPubSub()
|
||||
|
||||
auto currentAccount = getApp()->getAccounts()->twitch.getCurrent();
|
||||
|
||||
getApp()->getTwitchPubSub()->listenToChannelPointRewards(roomId);
|
||||
|
||||
if (currentAccount->isAnon())
|
||||
{
|
||||
this->eventSubChannelModerateHandle.reset();
|
||||
this->eventSubAutomodMessageHoldHandle.reset();
|
||||
this->eventSubAutomodMessageUpdateHandle.reset();
|
||||
this->eventSubSuspiciousUserMessageHandle.reset();
|
||||
this->eventSubSuspiciousUserUpdateHandle.reset();
|
||||
this->eventSubChannelChatUserMessageHoldHandle.reset();
|
||||
this->eventSubChannelChatUserMessageUpdateHandle.reset();
|
||||
return;
|
||||
}
|
||||
|
||||
const auto ¤tTwitchUserID = currentAccount->getUserId();
|
||||
|
||||
if (this->hasModRights())
|
||||
@@ -1692,8 +1706,6 @@ void TwitchChannel::refreshPubSub()
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
getApp()->getTwitchPubSub()->listenToChannelPointRewards(roomId);
|
||||
}
|
||||
|
||||
void TwitchChannel::refreshChatters()
|
||||
|
||||
Reference in New Issue
Block a user