提交 55f68ca2 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

give contact avatar a default file name (#1319)

上级 789b06e1
......@@ -590,7 +590,10 @@ export class PuppetPadchat extends Puppet {
throw new Error('no avatar')
}
const fileBox = FileBox.fromUrl(payload.avatar)
const fileBox = FileBox.fromUrl(
payload.avatar,
`wechaty-contact-avatar-${payload.name}.jpg`,
)
return fileBox
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册