Skip to content

friendship.contact() will load Contact only, contact.ready() is wanted. #1954

@su-chang

Description

@su-chang

Important:Please file the issue follow the template, or we won't help you to solve the problem.

0. Report Issue Guide

  1. Please run the following command and check whether the problem has been fixed:
rm -rf package-lock.json
rm -rf node_modules
npm install
  1. Please search in FAQ List first, and make sure your problem has not been solved before.

  2. Please search in the issue first, and make sure your problem had not been reported before

1. Versions

  • What is your wechaty version?
    Answer:0.39.14

  • Which puppet are you using for wechaty? (padchat/puppeteer/padpro/...)
    Answer:padplus

  • What is your wechaty-puppet-XXX(padchat/puppeteer/) version?
    Answer:0.7.15

  • What is your node version? (run node --version)
    Answer:10.16.0

  • What os are you using
    Answer:Mac OS 10.15.4

2. Describe the bug

Give a clear and concise description of what the bug is.

I think it is better to add contact.ready() in friendship.contact() method, rather than let users to sync the contact in friendship event by themselves.

3. To Reproduce

This part is very important: if you can not provide any reproduce steps, then the problem will be very hard to be recognized.

Steps to reproduce the behavior:

  1. start the bot
  2. send a friend request to the bot
  3. try to print friendship.contact()

4. Expected behavior

Give a clear and concise description of what you expected to happen.

No need to sync it by us, let wechaty do it.

5. Actual behavior

If applicable, add screenshots to help explain your problem. But do not paste log screenshots here.

We need sync contact if we want to get the contact detail info not the only id.

6. Full Output Logs

Set env WECHATY_LOG=silly in order to set log level to silly, then we can get the full log (If you dosen't set log env, log level is info as default, we cannot get the full log)

We need full log instead of log screenshot or log fragments!

Show Logs
$ WECHATY_LOG=silly node yourbot.js

Question: Paste your FULL(DO NOT ONLY PROVIDE FRAGMENTS) log messages
Answer:

7. Additional context

Add any other context about the problem here.

[bug]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions