-
-
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
Update wechaty.ts #1833
Update wechaty.ts #1833
Conversation
Remove `room.sync()`, because it can not get room info when the bot has been removed from room.
I don't think this fix is a good idea because you just fix your problem, but at the same time, you made the system worse. The Please think more about how the whole system works, and find a better way to handle your problem. And also you have to think about what's the best practice to do it. |
Thanks for pointing out this problem, I will try to fix this bug gracefully. |
About the event Case 1: the bot is the room owner
Case 2: the bot is not the room owner
There are some cases that I summary for the event |
@su-chang Thanks for the summary. So what's your suggestion to deal with this problem? |
I guess this problem is because when we call I believe it will be easy to fix by keeping the room payload after the bot had been removed out. We can think about the Wechat App on the phone: If someone is removed from a room(group), the Wechat App will keep the room information in the conversation list, instead of remove/delete it, even they can not get any information from that room anymore. |
@huan Do you think we need a flag to tell the user that the room is deleted? |
I agree with @windmemory that there should be a flag to let user know that this room has died.
@su-chang Thanks for sharing your thoughts and the design. I think Wechaty needs to do a However, I do agree with @windmemory that we should set a flag for the room to identify that the bot was not in it anymore, but we should keep the room information for future use. (that's what Wechat App on the Phone did). So I'd like to suggest that we deal this in the puppet implementation, and we can set the out-of-the-room flag in the future, then the Wechaty will get to know it after the sync operation. |
fix: remove
room.sync()
, because it can not get room info when the bot has been removed from room. #1834I'm submitting a...
Checklist
Description
please describe the changes that you are making
for features, please describe how to use the new feature
please include a reference to an existing issue, if applicable
Does this PR introduce a breaking change?