-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send to all urns #49
Send to all urns #49
Conversation
flows/actions/reply.go
Outdated
run.AddEvent(step, events.NewSendMsgToContact(run.Contact().UUID(), text, a.Attachments)) | ||
urns := run.Contact().URNs() | ||
if a.AllURNs && len(urns) > 0 { | ||
for i := range urns { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may be a question of how we expect this to work for contacts that have no URNs but I think the more go-ing way of doing this would probably be:
if a.AllURNS {
for _, urn := range run.Contact().URNS() {
run.AddEvent(step, events.NewSendMsgToURN(urn, text, a.Attachments))
}
} else {
...
}
@@ -48,6 +48,16 @@ | |||
"text": "Hi @contact.name, are you ready?" | |||
}, | |||
{ | |||
"uuid": "ac110f56-a66c-4462-921c-b2c6d1c6dadb", | |||
"type": "send_msg", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this means what you think it means. :)
Addresses #45