Merge pull request #694 from apa420/apa-mentions

Fixed /mentions
This commit is contained in:
pajlada 2018-09-01 11:34:52 +02:00 committed by GitHub
commit 40672c492a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,8 +66,8 @@ void IrcMessageHandler::addMessage(Communi::IrcMessage *_message,
builder->flags.unset(MessageFlag::Highlighted); builder->flags.unset(MessageFlag::Highlighted);
} }
auto highlighted = builder->flags.has(MessageFlag::Highlighted);
auto msg = builder.build(); auto msg = builder.build();
auto highlighted = msg->flags.has(MessageFlag::Highlighted);
if (!isSub) { if (!isSub) {
if (highlighted) { if (highlighted) {