From eb2590bc6c28aed263aea75b2e1c2397fca2247c Mon Sep 17 00:00:00 2001 From: azudin Date: Sat, 1 Oct 2022 13:07:44 +0800 Subject: [PATCH] Update history.ts (#2212) * Update history.ts Include FB business in contact * Improve contact history Update verifiedName --- src/Utils/history.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Utils/history.ts b/src/Utils/history.ts index 9c49291..6e76f95 100644 --- a/src/Utils/history.ts +++ b/src/Utils/history.ts @@ -61,8 +61,9 @@ export const processHistoryMessage = (item: proto.IHistorySync) => { } if( - !message.key.fromMe - && message.messageStubType === WAMessageStubType.BIZ_PRIVACY_MODE_TO_BSP + (message.messageStubType === WAMessageStubType.BIZ_PRIVACY_MODE_TO_BSP + || message.messageStubType === WAMessageStubType.BIZ_PRIVACY_MODE_TO_FB + ) && message.messageStubParameters?.[0] ) { contacts.push({ @@ -82,7 +83,7 @@ export const processHistoryMessage = (item: proto.IHistorySync) => { break case proto.HistorySync.HistorySyncType.PUSH_NAME: for(const c of item.pushnames!) { - contacts.push({ notify: c.pushname!, id: c.id! }) + contacts.push({ id: c.id!, notify: c.pushname! }) } break