fix: emote popup logging messages to "Other" directory (#6165)

This commit is contained in:
pajlada
2025-04-20 14:06:22 +02:00
committed by GitHub
parent 14aa4d1400
commit 39ed2dd45a
5 changed files with 27 additions and 4 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ void Channel::addMessage(MessagePtr message, MessageContext context,
{
MessagePtr deleted;
if (context == MessageContext::Original)
if (context == MessageContext::Original && this->getType() != Type::None)
{
// Only log original messages
auto isDoNotLogSet =
+14 -2
View File
@@ -35,16 +35,28 @@ public:
/**
* @exposeenum c2.ChannelType
*/
enum class Type {
enum class Type : std::uint8_t {
/// This channel may not be backed by a real channel.
///
/// Messages sent to this channel are not logged.
None,
/// Direct
Direct,
/// Twitch
Twitch,
/// TwitchWhispers
TwitchWhispers,
/// TwitchWatching
TwitchWatching,
/// TwitchMentions
TwitchMentions,
/// TwitchLive
TwitchLive,
/// TwitchAutomod
TwitchAutomod,
/// TwitchEnd
TwitchEnd,
/// Misc
Misc,
};
@@ -135,7 +147,7 @@ public:
protected:
virtual void onConnected();
virtual void messageRemovedFromStart(const MessagePtr &msg);
QString platform_{"other"};
QString platform_;
private:
const QString name_;