Skip to content
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.findAll和Contact.findAll所查询出来的id是否是唯一的,会发改变吗,用的w4u的协议 #2663

Open
JsweetA opened this issue Mar 27, 2024 · 1 comment

Comments

@JsweetA
Copy link

JsweetA commented Mar 27, 2024

🚨 The issue tracker is not for questions 🚨

If you have a question, please ask it on https://stackoverflow.com/questions/tagged/wechaty

[question]

Copy link

dosubot bot commented Mar 27, 2024

The IDs returned by the Room.findAll and Contact.findAll methods in Wechaty are unique identifiers for rooms and contacts, respectively, and are generally stable. However, their stability can be influenced by several factors including the underlying WeChat platform, the specific puppet implementation used with Wechaty, and potential changes on the platform's end such as account deletion or re-registration.

Different puppet implementations may handle ID generation and management differently, and changes or updates to the WeChat platform itself can affect how IDs are generated or managed. Additionally, changes in the contact's or room's information might lead to a regeneration of IDs to reflect these changes. The session state and caching mechanisms used by the puppet implementation might also result in different IDs being generated under certain conditions.

The Wechaty framework abstracts various WeChat protocols through different puppet implementations, and the behavior regarding ID consistency can vary depending on these implementations. The wechaty-puppet abstraction layer within Wechaty handles changes in the underlying platform that might affect the generation or management of IDs for rooms and contacts.

For more details, you can refer to the source code of the Contact and Room classes within Wechaty:

If you have any more questions or need further clarification, feel free to ask.

Sources

About Dosu

This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

@JsweetA JsweetA changed the title 询问通过Room.findAll和Contact.findAll所查询出来的id是否是唯一的,会发送变化吗 询问通过Room.findAll和Contact.findAll所查询出来的id是否是唯一的,会发改变吗,用的w4u的协议 Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant