-
Notifications
You must be signed in to change notification settings - Fork 625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WhatsApp "Someone" nicknaming #1363
Comments
Why did you close this? Did you find a solution? |
Dear Sir, |
@joko2020 you should look at the nextcloud forums, I don't know where they put the matterbridge.toml |
Thanks for your reply.. unfortunately , I cannot get the right inormation Also |
Solution for this particular issue is IMO to allow to show the phone number instead of "someone". While that's not wanted in public groups, it's absolutely wanted in most private group bridging. |
When reading the code og go-whatsapp, I found:
May it be that the key in the contatc list is different from the actual sender jid, causing the lookup failures? |
It seems that if I restart matterbridge, after someone has sent a message to a WA group, this one's nick is resolved properly. |
There was already a related fix in #796. But it seems that this is insufficient. I have tried to analyze when My assumption: When a message arrives and the nick is not known, it is retrieved somehow. But this happens after the nick for this first message is already resolved to Could anyone with knowledge about the code verify (and hopefully fix) this? |
@nathanaelhoun I ping you in this ticket since your PR #1160 seems to be related to this issue. |
Hi @micw, I tried to fix this issue as you noted.
I arrived to the same conclusion and it's why I made #1160 to reload the user list if their is no nickname. Because this changes did not solve the issue (at least, not everytime), I believe your assumption may be right, from what I remember from the last time I checked the code:
|
@nathanaelhoun matterbridge/bridge/whatsapp/helpers.go Lines 75 to 111 in 78f3820
To avoid code duplication (which leads to diverge in code as already happened, compare L77-L89 with L102-107) I think the check should be earlier, something like:
Besides that, |
Is there a solution or workaround to this? |
Is your feature request related to a problem? Please describe.
WhatsApp tend to relay messages with "<Someone>" nickname in some cases (randomly) even if actual WhatsApp nickname presented. So it is completely impossible to distinguish authors of the posts on the other side of the bridge.
Describe the solution you'd like
To fix WhatsApp "<Someone>" nicknames with actual nicknames and add the option to use phone numbers as <NICK> source (if actual nickname is not set).
Describe alternatives you've considered
To generate unique random pseudonym nickname for each "anonymous" user instead of static "<Someone>" nickname.
Additional context
Group chat, WhatsApp - Mattermost bridge, ~50 users, some users have specified nickname, some of them are not.
The text was updated successfully, but these errors were encountered: