Skip to content

Commit

Permalink
修复历史消息推送问题
Browse files Browse the repository at this point in the history
  • Loading branch information
leochen-g committed Dec 13, 2023
1 parent 5128059 commit fe43367
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/puppet-wechat4u.ts
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ export class PuppetWechat4u extends PUPPET.Puppet {
wechat4u.on('login', async () => {
// 由于初始好友列表没有存储当前bot的基础信息,所以在登录后直接更新当前机器人的信息
this.wechat4u.updateContacts([ this.wechat4u.user ])
this.startTime = parseInt(String(new Date().getTime() / 1000))
// FIXME: where's the logined user id?
const userId = this.wechat4u.user.UserName
if (!userId) {
Expand Down

0 comments on commit fe43367

Please sign in to comment.