From fef89d70f97edbf2218009e9842f32ad70aa84e5 Mon Sep 17 00:00:00 2001 From: Mick Sayson Date: Tue, 18 Jun 2019 17:26:47 -0700 Subject: [PATCH] fix(messages): Fix broken sanitized name for notifications/alert messages * Note that this fix will not take effect until the message processor is hooked up to widget and chatform --- src/model/message.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/message.cpp b/src/model/message.cpp index 123d2a9d6..63790c7c1 100644 --- a/src/model/message.cpp +++ b/src/model/message.cpp @@ -26,7 +26,7 @@ void MessageProcessor::SharedParams::onUserNameSet(const QString& username) QString sanename = username; sanename.remove(QRegExp("[\\t\\n\\v\\f\\r\\x0000]")); nameMention = QRegExp("\\b" + QRegExp::escape(username) + "\\b", Qt::CaseInsensitive); - sanitizedNameMention = nameMention; + sanitizedNameMention = QRegExp("\\b" + QRegExp::escape(sanename) + "\\b", Qt::CaseInsensitive); } MessageProcessor::MessageProcessor(const MessageProcessor::SharedParams& sharedParams)