mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Fixed #691
This commit is contained in:
parent
597a8eeb2b
commit
d3a97b4faf
1 changed files with 5 additions and 1 deletions
|
@ -223,7 +223,10 @@ void IrcMessageHandler::handleWhisperMessage(Communi::IrcMessage *message)
|
|||
if (!builder.isIgnored()) {
|
||||
app->twitch.server->lastUserThatWhisperedMe.set(builder.userName);
|
||||
|
||||
MessagePtr _message = builder.build();
|
||||
// (hemirt) the underlying message is non const declared, but then
|
||||
// returned by the builder as ptr to const
|
||||
std::shared_ptr<Message> _message =
|
||||
std::const_pointer_cast<Message>(builder.build());
|
||||
|
||||
if (_message->flags.has(MessageFlag::Highlighted)) {
|
||||
app->twitch.server->mentionsChannel->addMessage(_message);
|
||||
|
@ -233,6 +236,7 @@ void IrcMessageHandler::handleWhisperMessage(Communi::IrcMessage *message)
|
|||
|
||||
if (getSettings()->inlineWhispers) {
|
||||
app->twitch.server->forEachChannel([_message](ChannelPtr channel) {
|
||||
_message->flags.set(MessageFlag::DoNotTriggerNotification);
|
||||
channel->addMessage(_message); //
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue