fix: emote popup logging messages to "Other" directory (#6165)
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
- Bugfix: Make reply-cancel button less coarse-grained. (#6106)
|
- Bugfix: Make reply-cancel button less coarse-grained. (#6106)
|
||||||
- Bugfix: Fixed missing BetterTTV live updates of emotes. (#6132)
|
- Bugfix: Fixed missing BetterTTV live updates of emotes. (#6132)
|
||||||
- Bugfix: Fixed message contents being cleared when using the close button for replies. (#6145)
|
- Bugfix: Fixed message contents being cleared when using the close button for replies. (#6145)
|
||||||
|
- Bugfix: Fixed the emote popup erroneously logging messages to the `Other` directory. (#6165)
|
||||||
- Bugfix: Handle <kbd>CMD</kbd> + <kbd>BACKSPACE</kbd> behavior explicitly in main chat dialog input for macOS. (#6111)
|
- Bugfix: Handle <kbd>CMD</kbd> + <kbd>BACKSPACE</kbd> behavior explicitly in main chat dialog input for macOS. (#6111)
|
||||||
- Bugfix: Fixed a small typo in the settings page. (#6134)
|
- Bugfix: Fixed a small typo in the settings page. (#6134)
|
||||||
- Bugfix: Fixed an issue where Splits could get lost by dragging it onto your Recycle Bin. (#6147)
|
- Bugfix: Fixed an issue where Splits could get lost by dragging it onto your Recycle Bin. (#6147)
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ void Channel::addMessage(MessagePtr message, MessageContext context,
|
|||||||
{
|
{
|
||||||
MessagePtr deleted;
|
MessagePtr deleted;
|
||||||
|
|
||||||
if (context == MessageContext::Original)
|
if (context == MessageContext::Original && this->getType() != Type::None)
|
||||||
{
|
{
|
||||||
// Only log original messages
|
// Only log original messages
|
||||||
auto isDoNotLogSet =
|
auto isDoNotLogSet =
|
||||||
|
|||||||
+14
-2
@@ -35,16 +35,28 @@ public:
|
|||||||
/**
|
/**
|
||||||
* @exposeenum c2.ChannelType
|
* @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,
|
None,
|
||||||
|
/// Direct
|
||||||
Direct,
|
Direct,
|
||||||
|
/// Twitch
|
||||||
Twitch,
|
Twitch,
|
||||||
|
/// TwitchWhispers
|
||||||
TwitchWhispers,
|
TwitchWhispers,
|
||||||
|
/// TwitchWatching
|
||||||
TwitchWatching,
|
TwitchWatching,
|
||||||
|
/// TwitchMentions
|
||||||
TwitchMentions,
|
TwitchMentions,
|
||||||
|
/// TwitchLive
|
||||||
TwitchLive,
|
TwitchLive,
|
||||||
|
/// TwitchAutomod
|
||||||
TwitchAutomod,
|
TwitchAutomod,
|
||||||
|
/// TwitchEnd
|
||||||
TwitchEnd,
|
TwitchEnd,
|
||||||
|
/// Misc
|
||||||
Misc,
|
Misc,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -135,7 +147,7 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
virtual void onConnected();
|
virtual void onConnected();
|
||||||
virtual void messageRemovedFromStart(const MessagePtr &msg);
|
virtual void messageRemovedFromStart(const MessagePtr &msg);
|
||||||
QString platform_{"other"};
|
QString platform_;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const QString name_;
|
const QString name_;
|
||||||
|
|||||||
@@ -34,6 +34,11 @@ Logging::Logging(Settings &settings)
|
|||||||
void Logging::addMessage(const QString &channelName, MessagePtr message,
|
void Logging::addMessage(const QString &channelName, MessagePtr message,
|
||||||
const QString &platformName, const QString &streamID)
|
const QString &platformName, const QString &streamID)
|
||||||
{
|
{
|
||||||
|
if (platformName.isEmpty())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this->threadGuard.guard();
|
this->threadGuard.guard();
|
||||||
|
|
||||||
if (!getSettings()->enableLogging)
|
if (!getSettings()->enableLogging)
|
||||||
@@ -76,6 +81,11 @@ void Logging::addMessage(const QString &channelName, MessagePtr message,
|
|||||||
void Logging::closeChannel(const QString &channelName,
|
void Logging::closeChannel(const QString &channelName,
|
||||||
const QString &platformName)
|
const QString &platformName)
|
||||||
{
|
{
|
||||||
|
if (platformName.isEmpty())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
auto platIt = this->loggingChannels_.find(platformName);
|
auto platIt = this->loggingChannels_.find(platformName);
|
||||||
if (platIt == this->loggingChannels_.end())
|
if (platIt == this->loggingChannels_.end())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ public:
|
|||||||
// Directory for settings files. Same as <appDataDirectory>/Settings
|
// Directory for settings files. Same as <appDataDirectory>/Settings
|
||||||
QString settingsDirectory;
|
QString settingsDirectory;
|
||||||
|
|
||||||
// Directory for message log files. Same as <appDataDirectory>/Misc
|
// Directory for message log files. Same as <appDataDirectory>/Logs
|
||||||
QString messageLogDirectory;
|
QString messageLogDirectory;
|
||||||
|
|
||||||
// Directory for miscellaneous files. Same as <appDataDirectory>/Misc
|
// Directory for miscellaneous files. Same as <appDataDirectory>/Misc
|
||||||
|
|||||||
Reference in New Issue
Block a user