Update to work with latest signald client protocol as of https://gitlab.com/thefinn93/signald/-/merge_requests/14
This commit is contained in:
parent
34a208588b
commit
c3bfae8751
4 changed files with 71 additions and 39 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue