diff --git a/src/wechaty.ts b/src/wechaty.ts index 4569dd017fc004e58d3c4900869d220d013754d9..4a4fe8ae33b9242016f34fdc16eb762f737712f0 100644 --- a/src/wechaty.ts +++ b/src/wechaty.ts @@ -698,7 +698,7 @@ export class Wechaty extends Accessory implements Sayable { room.emit('leave', leaverList, remover) // issue #254 - if (leaverIdList.includes(this.self().id)) { + if (leaverIdList.includes(this.puppet.selfId())) { await this.puppet.roomPayloadDirty(roomId) await this.puppet.roomMemberPayloadDirty(roomId) }