Skip to content

Commit ec2de8e

Browse files
committed
Fetch all WhatsApp numbers from a contact
Filter more robustly than by phone type.
1 parent 9fed6b8 commit ec2de8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WhatsApp/ContentMessage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ .type as $type |
4545
name: .contacts[].name.first_name,
4646
surname: .contacts[].name.last_name,
4747
numbers: [.contacts[].phones[] |
48-
select(.type == "MOBILE") | .wa_id]
48+
select(.wa_id? != null) | .wa_id]
4949
}
5050
elif $type == "text" then {
5151
"$type": $type,

0 commit comments

Comments
 (0)