From 6e615f7f929a9f9abf3a8eb6e1cb4ffdcf19c0d7 Mon Sep 17 00:00:00 2001 From: jbhusson <jonah@elixxir.io> Date: Thu, 29 Apr 2021 18:29:24 -0400 Subject: [PATCH] update to take token as string --- api/notifications.go | 2 +- bindings/notifications.go | 2 +- go.mod | 2 +- go.sum | 4 ++++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/api/notifications.go b/api/notifications.go index 1fe7bfb48..99ab1d89c 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 a38d064b6..461f15c32 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 70461626c..5e81fe817 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 9dd21c997..84056af7e 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= -- GitLab