Skip to content

Commit

Permalink
Merge pull request #188 from weni-ai/feat/whatsapp-broadcasts
Browse files Browse the repository at this point in the history
Feat: Whatsapp broadcasts
  • Loading branch information
paulobernardoaf authored Nov 21, 2024
2 parents 523c498 + 8baabd1 commit a25c777
Show file tree
Hide file tree
Showing 11 changed files with 902 additions and 19 deletions.
11 changes: 11 additions & 0 deletions core/models/channels_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,17 @@ func TestChannels(t *testing.T) {
false,
nil,
},
{
testdata.WhatsAppCloudChannel.ID,
testdata.WhatsAppCloudChannel.UUID,
"WhatsApp Cloud",
"+559999999999",
[]string{"whatsapp"},
[]assets.ChannelRole{"send", "receive"},
nil,
false,
nil,
},
{
testdata.VonageChannel.ID,
testdata.VonageChannel.UUID,
Expand Down
2 changes: 1 addition & 1 deletion core/models/contacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ func contactIDsFromURNs(ctx context.Context, db Queryer, orgID OrgID, urnz []urn
owners[identityToOriginal[urn]] = id
}

if (orgConfig.Get("verify_ninth_digit", false) == true) {
if orgConfig.Get("verify_ninth_digit", false) == true {
owners, err = checkNinthDigitContacts(ctx, owners, db, orgID)
if err != nil {
return nil, errors.Wrapf(err, "error while checking for ninth digit contacts")
Expand Down
Loading

0 comments on commit a25c777

Please sign in to comment.