From a3b888558e3bf2f1f00317ce957a4accb27efdf0 Mon Sep 17 00:00:00 2001 From: Huan LI Date: Sat, 16 Jun 2018 00:01:28 +0800 Subject: [PATCH] keep the payload when call room.del() until we process the leave event (#1329) --- src/puppet-padchat/puppet-padchat.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/puppet-padchat/puppet-padchat.ts b/src/puppet-padchat/puppet-padchat.ts index e1dcf7b8..f138f608 100644 --- a/src/puppet-padchat/puppet-padchat.ts +++ b/src/puppet-padchat/puppet-padchat.ts @@ -964,7 +964,13 @@ export class PuppetPadchat extends Puppet { // Should check whether user is in the room. WXDeleteChatRoomMember won't check if user in the room automatically await this.padchatManager.WXDeleteChatRoomMember(roomId, contactId) - await this.roomMemberPayloadDirty(roomId) + + /** + * Should not dirty payload at here, + * because later we need to get the leaverId from the event. + * We will dirty the payload when we process the leave event. + */ + // await this.roomMemberPayloadDirty(roomId) } public async roomQrcode(roomId: string): Promise { -- GitLab