mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Merge pull request #1353 from leon-richardt/comma-mention-fix
Fix Bug Regarding Mentions with Comma
This commit is contained in:
commit
2284b713c1
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue