Added @ back in
Added the @ back to the chat, this will help if a user does not have the newest version of the client.
This commit is contained in:
parent
49d3ad73d5
commit
ece56ff3f2
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ void ChatView::appendMessage(QString message, QString sender, UserLevelFlags use
|
||||||
int mentionIndex;
|
int mentionIndex;
|
||||||
while ((mentionIndex = message.toLower().indexOf(mention)) != -1) {
|
while ((mentionIndex = message.toLower().indexOf(mention)) != -1) {
|
||||||
cursor.insertText(message.left(mentionIndex), defaultFormat);
|
cursor.insertText(message.left(mentionIndex), defaultFormat);
|
||||||
cursor.insertText(userName, mentionFormat);
|
cursor.insertText("@" + userName, mentionFormat);
|
||||||
message = message.mid(mentionIndex + mention.size());
|
message = message.mid(mentionIndex + mention.size());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue