chat-utils: add fallbacks for contact name extraction
Apply consistent fallback pattern for contact names: - chat-utils.ts: fullName || firstName || username for lidContactAction - sync-action-utils.ts: fullName || firstName || username for processContactAction Ensures contact names are extracted regardless of which field WhatsApp populates.
This commit is contained in:
@@ -45,7 +45,7 @@ export const processContactAction = (
|
||||
data: [
|
||||
{
|
||||
id,
|
||||
name: action.fullName || undefined,
|
||||
name: action.fullName || action.firstName || action.username || undefined,
|
||||
lid: lidJid || undefined,
|
||||
phoneNumber
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user