Update history.ts (#2212)

* Update history.ts

Include FB business in contact

* Improve contact history

Update verifiedName
This commit is contained in:
azudin
2022-10-01 13:07:44 +08:00
committed by GitHub
parent d0330d1863
commit eb2590bc6c

View File

@@ -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