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 announcement is not working properly for some puppet implementation #1816

Closed
windmemory opened this issue Jul 12, 2019 · 11 comments
Closed

Comments

@windmemory
Copy link
Member

windmemory commented Jul 12, 2019

Today we tested the room announcement feature with wechaty-puppet-padpro.

Seems like the room announcement is a special type of message, which mentions everyone in the room, and the data structure is different from the regular messages. So calling the mention() or mentionSelf() method on an announcement message will throw out errors with wechaty-puppet-padpro. I haven't got time to pull out the actually message content yet, will do this later, but before that, I wondered how should we handle such message, and would like to start the discussion about the way that we deal with such kind of message.

Shall we put all room members in the message.mention() call? Or we could have some other message type?

Please let me know what you think @huan


After we have conclusion of how to deal with the room announcement message, we need to fix the room announcement implementation in wechaty-puppet-padpro, issue here: wechaty/wechaty-puppet-padpro#166

Other puppet implementation needs to check the function is working as expected.

@huan
Copy link
Member

huan commented Jul 12, 2019

I would like to think that the announcement message should be seen from the user as a normal mention message for themselves.

@windmemory
Copy link
Member Author

Okay, if we implement the feature in that way, then for Message.mention() function, we shall return back the whole list of the room members, is that correct?

@huan
Copy link
Member

huan commented Jul 13, 2019

Correct. That's the idea. Please go ahead.

@windmemory
Copy link
Member Author

Okay, will impl in that way. Close this issue.

@huan
Copy link
Member

huan commented Jul 13, 2019

Great.

Looking forward to this new feature, and thank you very much for keeping improving the Wechaty.

Cheers!

@huan
Copy link
Member

huan commented Jul 13, 2019

BTW: I'd like to keep this issue to be open so that you could be able to reference this issue in your Pull Request and commits.

We can close it after all the Pull Requests had been merged, and confirmed all functionalities are working well.

@huan huan reopened this Jul 13, 2019
@windmemory
Copy link
Member Author

This issue was originally opened for discussion of how to deal with room announcement message, and we have a conclusion, so this topic should be considered as closed.

But you want to track this issue's progress, so let's rename this issue and pivot the purpose of this issue to fix the room announcement message implementation

@windmemory windmemory changed the title [RFC] What should we do when we receive room announcement Room announcement is not working properly for some puppet implementation Jul 15, 2019
@huan
Copy link
Member

huan commented Jul 15, 2019

Thank you for renaming this issue and keeping track it.

Would love to know the following works related to this issue.

@windmemory
Copy link
Member Author

This issue is resolved in wechaty-puppet-padpro for version that is newer than v0.3.12

Can we close this issue? @huan

@huan
Copy link
Member

huan commented Jul 29, 2019

Of course. And it would be great if you could link the related issues & pull request to this issue before closing it.

Thanks for your contribution!

@windmemory
Copy link
Member Author

Okay, linked the issue and close this issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants