-
Notifications
You must be signed in to change notification settings - Fork 16
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
Users Mapping Optimization #83
Conversation
It's not easy to debug the profile show problems, and there only leave the last one guesses waitting to verificate. 😂 |
Yes, It is a intent to set profile, can not do in inital bot user. |
We should deal with the avator like #82 . And there is no defficulty. |
const avatarFile = await wechatyUser.avatar() | ||
const avatarBuffer = await avatarFile.toBuffer() | ||
const avatarUrl = await this.appserviceManager.uploadContent( | ||
avatarBuffer, | ||
matrixUserId, | ||
{ type: avatarFile.mimeType }, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can also use the wechat image source url directly.
No other optimization ideas for the time being. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Your code looks good, thank you very much for implementing the avatar display for Wechaty users!
Try to optimize information show about wechat user, including the case which #66 descripts.