Update to work with latest signald client protocol as of https://gitlab.com/thefinn93/signald/-/merge_requests/14

This commit is contained in:
Finn 2020-06-30 03:54:35 -07:00
parent 34a208588b
commit c3bfae8751
4 changed files with 71 additions and 39 deletions

View file

@ -21,6 +21,7 @@ import (
"github.com/spf13/cobra"
"git.callpipe.com/finn/signald-go/signald"
"git.callpipe.com/finn/signald-go/signald/client-protocol/v1"
)
var (
@ -43,7 +44,7 @@ var sendCmd = &cobra.Command{
}
if toUser != "" {
request.RecipientNumber = toUser
request.RecipientAddress = v1.JsonAddress{Number: toUser}
} else if toGroup != "" {
request.RecipientGroupID = toGroup
} else {