mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixes #952 (replaced unused 'Notification' MessageFlag)
This commit is contained in:
parent
bfa002d3a1
commit
89f3a3f3ea
3 changed files with 3 additions and 2 deletions
|
@ -72,7 +72,7 @@ void Channel::addMessage(MessagePtr message,
|
|||
}
|
||||
|
||||
// FOURTF: change this when adding more providers
|
||||
if (this->isTwitchChannel())
|
||||
if (this->isTwitchChannel() && !overridingFlags->has(MessageFlag::Whisper))
|
||||
{
|
||||
app->logging->addMessage(this->name_, message);
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ enum class MessageFlag : uint16_t {
|
|||
Untimeout = (1 << 10),
|
||||
PubSub = (1 << 11),
|
||||
Subscription = (1 << 12),
|
||||
Notification = (1 << 13),
|
||||
Whisper = (1 << 13),
|
||||
AutoMod = (1 << 14),
|
||||
RecentMessage = (1 << 15),
|
||||
};
|
||||
|
|
|
@ -261,6 +261,7 @@ void IrcMessageHandler::handleWhisperMessage(Communi::IrcMessage *message)
|
|||
|
||||
auto overrideFlags = boost::optional<MessageFlags>(_message->flags);
|
||||
overrideFlags->set(MessageFlag::DoNotTriggerNotification);
|
||||
overrideFlags->set(MessageFlag::Whisper);
|
||||
|
||||
if (getSettings()->inlineWhispers)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue