diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index e1fc0d774..898da58db 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -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();