fix: emote popup logging messages to "Other" directory (#6165)
This commit is contained in:
@@ -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
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user