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

feat: friendship source #2120

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

feat: friendship source #2120

wants to merge 4 commits into from

Conversation

suhli
Copy link

@suhli suhli commented Jan 17, 2021

Checklist

  • Commit Messages follow the Conventional Commits pattern
    • A feature commit message is prefixed "feat:"
  • Tests for the changes have been added
  • CI has been passed. (GitHub actions all turns green)
  • SLA has been signed

Description

please describe the changes that you are making, with the related issue number.

feature: Issues#1801 Friendship 里增加 申请好友的”来源“

ref:
wechaty-puppet Pull Request#127

@@ -348,6 +349,10 @@ class Friendship extends EventEmitter implements Acceptable {
: FriendshipType.Unknown
}

public source (): FriendshipSource | null {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new API name looks good.

Can we also think about this API a little bit future: what if we are using a Whatsapp puppet, or a WXWork/DingTalk/Lark puppet?

Does the FriendSource return type can also fulfill those IM platform requirements?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok i know your means

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

Successfully merging this pull request may close these issues.

None yet

2 participants