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
commit 2284b713c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)
{