mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fix bug regarding mentions with comma
While tab-completing user names already respected the setting for mentions with commas, right-clicking user names did not. This commit adds the missing check in ChannelView::handleMouseClick.
This commit is contained in:
parent
375aa221eb
commit
d6bcd61289
|
@ -1506,7 +1506,8 @@ void ChannelView::handleMouseClick(QMouseEvent *event,
|
||||||
auto &link = hoveredElement->getLink();
|
auto &link = hoveredElement->getLink();
|
||||||
if (link.type == Link::UserInfo)
|
if (link.type == Link::UserInfo)
|
||||||
{
|
{
|
||||||
insertText("@" + link.value + ", ");
|
const bool commaMention = getSettings()->mentionUsersWithComma;
|
||||||
|
insertText("@" + link.value + (commaMention ? ", " : " "));
|
||||||
}
|
}
|
||||||
else if (link.type == Link::UserWhisper)
|
else if (link.type == Link::UserWhisper)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue