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

Commit

Permalink
fix(messages): Fix broken sanitized name for notifications/alert mess…
Browse files Browse the repository at this point in the history
…ages

* Note that this fix will not take effect until the message processor is
hooked up to widget and chatform
  • Loading branch information
sphaerophoria committed Jun 21, 2019
1 parent f0d8400 commit fef89d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fef89d7

Please sign in to comment.