fix: disable correct message upon automod approve or deny (#5611)

This commit is contained in:
iProdigy
2024-10-05 11:35:33 +00:00
committed by GitHub
parent 94e266ac82
commit 2d7f515e5a
3 changed files with 8 additions and 3 deletions
+1
View File
@@ -1835,6 +1835,7 @@ std::pair<MessagePtr, MessagePtr> MessageBuilder::makeAutomodMessage(
//
// Builder for AutoMod message with explanation
builder.message().id = "automod_" + action.msgID;
builder.message().loginName = "automod";
builder.message().channelName = channelName;
builder.message().flags.set(MessageFlag::PubSub);
+6 -3
View File
@@ -580,8 +580,12 @@ void TwitchIrcServer::initialize()
}
});
}
// "ALLOWED" and "DENIED" statuses remain unimplemented
// They are versions of automod_message_(denied|approved) but for mods.
else
{
// Gray out approve/deny button upon "ALLOWED" and "DENIED" statuses
// They are versions of automod_message_(denied|approved) but for mods.
chan->deleteMessage("automod_" + msg.messageID);
}
}
break;
@@ -629,7 +633,6 @@ void TwitchIrcServer::initialize()
postToThread([chan, msg] {
chan->addMessage(msg, MessageContext::Original);
});
chan->deleteMessage(msg->id);
});
this->connections_.managedConnect(