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
PuppetPadChat:Contact.avatar() Error #1473
Labels
Comments
Are you sure room or contact exist? Could you change as follows and have a try: let rooms = bot.Room.findAll();
rooms.forEach(async r => {
if (r) {
let members = await r.memberList();
membders.forEach(aynsc c => {
if (c) {
let avatar = await contact.avatar();
}
});
}
}); |
Why memberList has the contact who not exist in the room. |
when the contact exist the room byhimself, wechaty cannot detect that thing. |
OK,I know. |
@zhoumh1988 Thanks for reporting. I reopen this because we should deal with this situation instead of an unhandledRejection. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I get contact avatar.
The text was updated successfully, but these errors were encountered: