-
-
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.member() can not return right result #437
Comments
try await keyroom.ready() before const target = keyroom.member({alias: targetName}) || keyroom.member({name: targetName});
console.log(target); it may fix. |
await keyroom.refresh();
await keyroom.ready();
const target = keyroom.member({name: targetName}) || keyroom.member({alias: targetName});
console.log(target);
no, not working, the result shows |
please paste log and let me try to resolve... both |
@lvsjack I suggest you just use |
const target = keyroom.member({name: "爱帮助(测试)-助手"}) || keyroom.member({alias: "爱帮助(测试)-助手"});
console.log(target) // null const target = keyroom.member("爱帮助(测试)-助手");
console.log(target) // null |
What's the output of your targetName? console.log(targetName) |
const target = keyroom.member({name: "爱帮助(测试)-助手"}) || keyroom.member({alias: "爱帮助(测试)-助手"}); const target = keyroom.member("爱帮助(测试)-助手"); |
It's wired. Could you run your code by set export WECHATY_LOG=silly |
Close this issue due to inactivity for more than two months. |
Provide Your Network Information
localhost in China
Run
npm run doctor
orwechaty run doctor
(for docker user), paste output hereExpected behavior
get contact in room
Actual behavior
always return
null
, which is incorrect, because if I use room.memberList() method, it can return right contact info in the list.Steps to reproduce the behavior (and fixes, if any)
fixed as below
Paste the full output logs here with
WECHATY_LOG=silly
setThe text was updated successfully, but these errors were encountered: