From fd44f30c7d8dae6671e3d8153093d53fe1faaad0 Mon Sep 17 00:00:00 2001 From: Sidd Date: Sat, 7 May 2022 13:05:13 -0700 Subject: [PATCH] fix: disable duplicate automod caught message handler (#3717) --- CHANGELOG.md | 1 + src/providers/twitch/PubSubManager.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 33c6fed42..ac1221302 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - Minor: Sorted usernames in /vips message to be case-insensitive. (#3696) - Minor: Added option to open a user's chat in a new tab from the usercard profile picture context menu. (#3625) - Minor: Fixed tag parsing for consecutive escaped characters. (#3711) +- Minor: Fixed automod caught message notice appearing twice for mods. (#3717) - Bugfix: Fixed live notifications for usernames containing uppercase characters. (#3646) - Bugfix: Fixed live notifications not getting updated for closed streams going offline. (#3678) - Bugfix: Fixed certain settings dialogs appearing behind the main window, when `Always on top` was used. (#3679) diff --git a/src/providers/twitch/PubSubManager.cpp b/src/providers/twitch/PubSubManager.cpp index ada771860..8c6003cc5 100644 --- a/src/providers/twitch/PubSubManager.cpp +++ b/src/providers/twitch/PubSubManager.cpp @@ -279,6 +279,8 @@ PubSub::PubSub(const QString &host, std::chrono::seconds pingInterval) this->signals_.moderation.userUnbanned.invoke(action); }; + /* + // This handler is no longer required as we use the automod-queue topic now this->moderationActionHandlers["automod_rejected"] = [this](const auto &data, const auto &roomID) { AutomodAction action(data, roomID); @@ -309,6 +311,7 @@ PubSub::PubSub(const QString &host, std::chrono::seconds pingInterval) this->signals_.moderation.autoModMessageBlocked.invoke(action); }; + */ this->moderationActionHandlers["automod_message_rejected"] = [this](const auto &data, const auto &roomID) {