dev: correct handling of eventsubs without any account (#6503)

This commit is contained in:
teknsl
2025-09-28 14:21:55 +02:00
committed by GitHub
parent 3ec99fdd54
commit 24e45817a2
2 changed files with 15 additions and 2 deletions
+1
View File
@@ -11,6 +11,7 @@
- Dev: Find Boost's CMake Config file instead of module file. (#6499)
- Dev: Fix 32-bit compile in PluginRepl. (#6483)
- Dev: Fix the WinGet release workflow. (#6497)
- Dev: Correct handling of eventsubs without any account. (#6503)
- Dev: Removed dependency to Qt5 Compatibility module by updating libcommuni. (#6500)
## 2.5.4
+14 -2
View File
@@ -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 &currentTwitchUserID = currentAccount->getUserId();
if (this->hasModRights())
@@ -1692,8 +1706,6 @@ void TwitchChannel::refreshPubSub()
},
});
}
getApp()->getTwitchPubSub()->listenToChannelPointRewards(roomId);
}
void TwitchChannel::refreshChatters()