mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
Fix: Resolve 'not find name' issue in WhatsApp service
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.
This commit is contained in:
parent
d1098cfcae
commit
d76816eb9c
@ -3,13 +3,13 @@
|
|||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
* Fixed the function of saving or not saving data in the database
|
* 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)
|
# 2.0.1-beta (2024-07-17 17:01)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
* Resolved issue with Chatwoot not receiving messages sent by Typebot
|
* 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)
|
# 2.0.0-beta (2024-07-14 17:00)
|
||||||
|
|
||||||
|
@ -2669,7 +2669,7 @@ export class BaileysStartupService extends ChannelStartupService {
|
|||||||
return {
|
return {
|
||||||
exists: !!numberVerified?.exists,
|
exists: !!numberVerified?.exists,
|
||||||
jid: numberJid,
|
jid: numberJid,
|
||||||
name: contacts.find((c) => c.id === numberJid)?.pushName,
|
name: contacts.find((c) => c.remoteJid === numberJid)?.pushName,
|
||||||
number: user.number,
|
number: user.number,
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
|
Loading…
Reference in New Issue
Block a user