fix: disable duplicate automod caught message handler (#3717)

This commit is contained in:
Sidd
2022-05-07 13:05:13 -07:00
committed by GitHub
parent 65301a3359
commit fd44f30c7d
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -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)
+3
View File
@@ -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) {