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

save memory after login/logout

上级 0352024f
......@@ -623,6 +623,7 @@ export class Wechaty extends Accessory implements Sayable {
const contact = this.ContactSelf.load(contactId)
await contact.ready()
this.emit('login', contact)
await this.memory.save()
})
break
......@@ -631,6 +632,7 @@ export class Wechaty extends Accessory implements Sayable {
const contact = this.ContactSelf.load(contactId)
await contact.ready()
this.emit('logout', contact)
await this.memory.save()
})
break
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册