mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Update history.ts (#2212)
* Update history.ts Include FB business in contact * Improve contact history Update verifiedName
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user