-
-
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
Room.fresh()
not work; Room.alias()
returns null
#391
Comments
Btw, you should add more logs here as issue template showed, or I cannot give the more useful suggestion. |
...
await timeout(20000); // 在这段时间内,我修改群用户昵称
await room.refresh();
await room.ready();
list = room.memberList();
list.map((contact) => {
let name = (room.alias(contact) === null) ? contact.name() : room.alias(contact);
console.log(name); // 但是显示的还是修改前的用户昵称
});
... if I modify the alias, then refresh the room, the alias data not updated, but if I submit a new message, then get alias data, the data updated. |
have to submit the message by hand to let data refresh, the bot say is not working. Btw, about |
yes, this is not a bug, because this it the most wechaty can do now, you can contribute more on this if you really need more. About other questions, because of no more log or information, I cannot give the more useful suggestion. |
OK, I see. Thanks you for your time. |
Run
npm run doctor
orwechaty run doctor
(for docker user), paste output herenpm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "doctor"
npm ERR! node v7.8.0
npm ERR! npm v4.2.0
npm ERR! missing script: doctor
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Jack/.npm/_logs/2017-04-05T09_51_44_417Z-debug.log
Expected behavior
Room.fresh()
, the data should update as document say.Actual behavior
Room.alias (contact: Contact): string
returns nullSteps to reproduce the behavior (and fixes, if any)
Paste the full output logs here with
WECHATY_LOG=silly
setThe text was updated successfully, but these errors were encountered: