From 0c9706260b1bef3271960b6e7d09771f9dc00d7d Mon Sep 17 00:00:00 2001 From: Huan LI Date: Sun, 19 Aug 2018 11:43:07 +0800 Subject: [PATCH] fix #254 --- src/wechaty.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wechaty.ts b/src/wechaty.ts index 4569dd01..4a4fe8ae 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) } -- GitLab