diff --git a/api/notifications.go b/api/notifications.go index 1fe7bfb4811cb276ebd3e49f405af2348e5372f8..99ab1d89c79faa1c955d4c2e8f587f20e2f48d60 100644 --- a/api/notifications.go +++ b/api/notifications.go @@ -24,7 +24,7 @@ import ( // especially as these rely on third parties (i.e., Firebase *cough* // *cough* google's palantir *cough*) that may represent a security // risk to the user. -func (c *Client) RegisterForNotifications(token []byte) error { +func (c *Client) RegisterForNotifications(token string) error { jww.INFO.Printf("RegisterForNotifications(%s)", token) fmt.Println("RegisterforNotifications") // Pull the host from the manage diff --git a/bindings/notifications.go b/bindings/notifications.go index a38d064b6659011f7c1cbc2ef7aa50f3001b7d2c..461f15c324d55c144372161157e2d76cb0108869 100644 --- a/bindings/notifications.go +++ b/bindings/notifications.go @@ -32,7 +32,7 @@ func NotificationForMe(messageHash, idFP string, receptionId []byte) (bool, erro } // RegisterForNotifications accepts firebase messaging token -func (c *Client) RegisterForNotifications(token []byte) error { +func (c *Client) RegisterForNotifications(token string) error { return c.api.RegisterForNotifications(token) } diff --git a/go.mod b/go.mod index 70461626cc34c31cfd249e771250cf0463912317..5e81fe817c08d39457e3e17a384ee0fd791d8508 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,7 @@ require ( github.com/spf13/jwalterweatherman v1.1.0 github.com/spf13/viper v1.7.1 gitlab.com/elixxir/bloomfilter v0.0.0-20200930191214-10e9ac31b228 - gitlab.com/elixxir/comms v0.0.4-0.20210418162540-e8b5e8c46988 + gitlab.com/elixxir/comms v0.0.4-0.20210429222550-0cbb396aaacd gitlab.com/elixxir/crypto v0.0.7-0.20210413184512-e41c09223958 gitlab.com/elixxir/ekv v0.1.5 gitlab.com/elixxir/primitives v0.0.3-0.20210427004615-c68ecf15fcf3 diff --git a/go.sum b/go.sum index 9dd21c997d8c224071a81f152c76410fbd54840a..84056af7e3188a65bba555a06f2b5671f773e700 100644 --- a/go.sum +++ b/go.sum @@ -259,6 +259,10 @@ gitlab.com/elixxir/comms v0.0.4-0.20210413160356-853e51fc18e5 h1:Q/+lhZpIDQdIKy9 gitlab.com/elixxir/comms v0.0.4-0.20210413160356-853e51fc18e5/go.mod h1:0XsJ63n7knUeSX9BDKQG7xGtX6w0l5WsfplSsMbP9iM= gitlab.com/elixxir/comms v0.0.4-0.20210418162540-e8b5e8c46988 h1:MjMxUPNrTaJcWblWEFtDory8zNnOt9ACqZSK3E2s7hU= gitlab.com/elixxir/comms v0.0.4-0.20210418162540-e8b5e8c46988/go.mod h1:ld2cWRyYD9jxAFRR1FYAZce7FV25YMIjKUdCJF7Of44= +gitlab.com/elixxir/comms v0.0.4-0.20210423203408-dc8bf3dbd86b h1:iie2Lsj/kMBi7io426X5rHONUtJdOr5bqSeCFBN22qY= +gitlab.com/elixxir/comms v0.0.4-0.20210423203408-dc8bf3dbd86b/go.mod h1:ld2cWRyYD9jxAFRR1FYAZce7FV25YMIjKUdCJF7Of44= +gitlab.com/elixxir/comms v0.0.4-0.20210429222550-0cbb396aaacd h1:goYpN2Zg0x/QxZt0OiyvZsgRlJyP/m9NH+vY8lLm65Y= +gitlab.com/elixxir/comms v0.0.4-0.20210429222550-0cbb396aaacd/go.mod h1:ld2cWRyYD9jxAFRR1FYAZce7FV25YMIjKUdCJF7Of44= gitlab.com/elixxir/crypto v0.0.0-20200804182833-984246dea2c4 h1:28ftZDeYEko7xptCZzeFWS1Iam95dj46TWFVVlKmw6A= gitlab.com/elixxir/crypto v0.0.0-20200804182833-984246dea2c4/go.mod h1:ucm9SFKJo+K0N2GwRRpaNr+tKXMIOVWzmyUD0SbOu2c= gitlab.com/elixxir/crypto v0.0.3 h1:znCt/x2bL4y8czTPaaFkwzdgSgW3BJc/1+dxyf1jqVw=