diff options
author | Tobias Markmann <tm@ayena.de> | 2017-03-07 11:08:07 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2017-03-07 11:08:07 (GMT) |
commit | 56c7bc9d6a52dd7095405d2bcf9fca5473a464c3 (patch) | |
tree | e8e217ac3198742f53b8d12a8a9a70eb420e10ef | |
parent | fe92cc9dfbcde566ba2ac9af23e6774942c856cb (diff) | |
download | swift-56c7bc9d6a52dd7095405d2bcf9fca5473a464c3.zip swift-56c7bc9d6a52dd7095405d2bcf9fca5473a464c3.tar.bz2 |
Do not highlight in own room join system messages
Test-Information:
Tested by joining a MUC room and verified that the
‘You have entered room foo as bar.’ message does not contain
any highlights.
Tested on macOS 10.12.3 with Qt 5.5.1.
Change-Id: Ib830d081e74c4289be4bb1469bf005a2e4c4e298
-rw-r--r-- | Swift/Controllers/Chat/MUCController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/Controllers/Chat/MUCController.cpp b/Swift/Controllers/Chat/MUCController.cpp index 545eab5..b673bfd 100644 --- a/Swift/Controllers/Chat/MUCController.cpp +++ b/Swift/Controllers/Chat/MUCController.cpp @@ -386,7 +386,7 @@ void MUCController::handleJoinComplete(const std::string& nick) { joinMessage = str(format(QT_TRANSLATE_NOOP("", "You have entered room %1% as %2%.")) % toJID_.toString() % nick); } setNick(nick); - chatWindow_->replaceSystemMessage(chatMessageParser_->parseMessageBody(joinMessage), lastJoinMessageUID_, ChatWindow::UpdateTimestamp); + chatWindow_->replaceSystemMessage(chatMessageParser_->parseMessageBody(joinMessage, "", true), lastJoinMessageUID_, ChatWindow::UpdateTimestamp); lastJoinMessageUID_ = ""; #ifdef SWIFT_EXPERIMENTAL_HISTORY |