Merge pull request #1353 from leon-richardt/comma-mention-fix

Fix Bug Regarding Mentions with Comma
This commit is contained in:
pajlada
2019-10-04 04:01:37 -07:00
committed by GitHub
+2 -1
View File
@@ -1506,7 +1506,8 @@ void ChannelView::handleMouseClick(QMouseEvent *event,
auto &link = hoveredElement->getLink();
if (link.type == Link::UserInfo)
{
insertText("@" + link.value + ", ");
const bool commaMention = getSettings()->mentionUsersWithComma;
insertText("@" + link.value + (commaMention ? ", " : " "));
}
else if (link.type == Link::UserWhisper)
{