From adf923cdad56e7c89a01b633408a9a6f937ac6fd Mon Sep 17 00:00:00 2001 From: iProdigy <8106344+iProdigy@users.noreply.github.com> Date: Tue, 11 Feb 2025 10:50:11 -0600 Subject: [PATCH] fix: receive redemptions despite pubsub shutdown (#5947) --- CHANGELOG.md | 1 + src/providers/twitch/PubSubManager.cpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ca185b4..372d4b43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,7 @@ - Bugfix: Ensure miniaudio backend exits even if it doesn't exit cleanly. (#5896) - Bugfix: Fixed search in emote popup not always working correctly. (#5946) - Bugfix: Fixed channel point redemptions with messages not showing up if PubSub is disconnected. (#5948) +- Dev: Subscriptions to PubSub channel points redemption topics now use no auth token, making it continue to work during PubSub shutdown. (#5947) - Dev: Add initial experimental EventSub support. (#5837, #5895, #5897, #5904, #5910, #5903, #5915, #5916, #5930, #5935, #5932, #5943) - Dev: Remove unneeded platform specifier for toasts. (#5914) - Dev: Highlight checks now use non-capturing groups for the boundaries. (#5784) diff --git a/src/providers/twitch/PubSubManager.cpp b/src/providers/twitch/PubSubManager.cpp index 542795b3..6812c60a 100644 --- a/src/providers/twitch/PubSubManager.cpp +++ b/src/providers/twitch/PubSubManager.cpp @@ -1243,7 +1243,10 @@ void PubSub::runThread() void PubSub::listenToTopic(const QString &topic) { PubSubListenMessage msg({topic}); - msg.setToken(this->token_); + if (!topic.startsWith("community-points-channel-v1.")) + { + msg.setToken(this->token_); + } this->listen(std::move(msg)); }