Fixed comma appended to username completion when not at the beginning of the message (#3060)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -68,4 +68,17 @@ QColor getRandomColor(const QString &userId)
|
||||
return TWITCH_USERNAME_COLORS[colorIndex];
|
||||
}
|
||||
|
||||
QString formatUserMention(const QString &userName, bool isFirstWord,
|
||||
bool mentionUsersWithComma)
|
||||
{
|
||||
QString result = userName;
|
||||
|
||||
if (isFirstWord && mentionUsersWithComma)
|
||||
{
|
||||
result += ",";
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
} // namespace chatterino
|
||||
|
||||
Reference in New Issue
Block a user