Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(core): ignore mentioning users with empty nicknames
Browse files Browse the repository at this point in the history
  • Loading branch information
Monsterovich committed Dec 26, 2018
1 parent 2000bf5 commit 96ad27f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widget/widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1742,7 +1742,7 @@ void Widget::onGroupMessageReceived(int groupnumber, int peernumber, const QStri
return;
}

const auto mention = message.contains(nameMention) || message.contains(sanitizedNameMention);
const auto mention = !core->getUsername().isEmpty() && (message.contains(nameMention) || message.contains(sanitizedNameMention));
const auto targeted = !isSelf && mention;
const auto groupId = g->getId();
const auto date = QDateTime::currentDateTime();
Expand Down

0 comments on commit 96ad27f

Please sign in to comment.