Skip to content

Commit

Permalink
Fix: Resolve 'not find name' issue in WhatsApp service
Browse files Browse the repository at this point in the history
Resolves an issue where a name was not being found in the WhatsApp service. This fix updates the 'name' property in the WhatsApp service to use 'remoteJid' instead of 'id' when searching for contacts. This change affects the 'src/api/services/channels/whatsapp.baileys.service.ts' file and is reflected in the latest CHANGELOG.md update.

Note: The 'not find name' issue was initially addressed in the previous CHANGELOG.md version but was reintroduced due to a change in the contacts search logic. This commit aims to definitively resolve the issue.
  • Loading branch information
dgcode-tec committed Jul 17, 2024
1 parent d1098cf commit d76816e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
### Fixed

* Fixed the function of saving or not saving data in the database
* Resolve not find name

# 2.0.1-beta (2024-07-17 17:01)

### Fixed

* Resolved issue with Chatwoot not receiving messages sent by Typebot
* Fixed the function of saving or not saving data in the database

# 2.0.0-beta (2024-07-14 17:00)

Expand Down
2 changes: 1 addition & 1 deletion src/api/services/channels/whatsapp.baileys.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2669,7 +2669,7 @@ export class BaileysStartupService extends ChannelStartupService {
return {
exists: !!numberVerified?.exists,
jid: numberJid,
name: contacts.find((c) => c.id === numberJid)?.pushName,
name: contacts.find((c) => c.remoteJid === numberJid)?.pushName,
number: user.number,
};
}),
Expand Down

0 comments on commit d76816e

Please sign in to comment.