-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
contact name not sync after call sync() or restart docker (RPC) #1531
Comments
When you call What did the So I believe it's a padchat related issue. I had also looked into the source code of padchat, it will delete both memory cache and file cache, which I believe it will reload the payload from the protocol again. If that not reload the contact payload, then I'll guess it's related to the Wechat Protocol. I'm not sure, just FYI. At last, if someone says something in the room, I believe you can easy to find them out by just use |
Yea. However, when I did Another thing is,. when I @old_name that work, and the new name will come out. still not sure what part is issue. |
Can you try to call |
Yes, I did it before I search member. |
Now, we can using find to solve this issue by looking for previous message history. |
Provide Your Network Information
own server
Run
npm run doctor
orwechaty run doctor
(for docker user), paste output heredocker run in container
Version : 0.19.123
Expected behavior
OR
Actual behavior
contact not sync after restart the docker or force sync().
Steps to reproduce the behavior (and fixes, if any)
The issue I have now is a advertising contact/people send a advertising message in a room.
and then they change name right the way.
if I use await room.member(name), the contact won't be found because the name in the cache not sync with new name.
so I would like to force sync the new name with sync().
not only that, even I restart the docker, the contact name still is the old name.
I am not sure this is wechaty, padchat or wechat app limit(because sometime in the phone if a person change name or profile picture, we have to click on the phone to reload these information)
Hope we can have force sync contact function if we really have to get the new name
NOTE: I actually found this issue by look up whole log, and usually if want want to remove a contact via bot we have to give the correct name to find the actually contact then call room.del(contact).
Full Output Logs
Show Logs
Paste the full output logs here with
WECHATY_LOG=silly
setThe text was updated successfully, but these errors were encountered: