idoco / intergram

Free live chat widget linked to your Telegram messenger
https://www.intergram.xyz
Mozilla Public License 2.0
1.4k stars 358 forks source link

Adding property for "You" visitor name #99

Closed NFKData closed 1 year ago

NFKData commented 3 years ago

As the code is implemented, "You" prefix is controlled like that:

if (from === 'visitor') {
    name = "You";
}

But it could controlled by something like that:

if (from === 'visitor') {
    name = props.conf.visitorMessageName;
}

I could do the change and open a PR if this feature is wanted.

idoco commented 3 years ago

Sure. Create a PR and I will review and merge it. Please leave "You" as the default pronoun for users who don't use props.conf.visitorPronoun

ostpnk commented 1 year ago

This change has not been implemented, right?

NFKData commented 1 year ago

@ostpnk Change was done and PR was created, but still not accepted neither merged

ostpnk commented 1 year ago

@NFKData , thank you! @idoco , could you please help with it?

NFKData commented 1 year ago

Closing as the PR is already merged!