From 0b109ae93ae28645648250f889e861647f913d0f Mon Sep 17 00:00:00 2001
From: Jono Wenger <jono@elixxir.io>
Date: Wed, 14 Dec 2022 10:45:56 -0800
Subject: [PATCH] Update deps

---
 go.mod           |  2 +-
 go.sum           |  4 ++--
 wasm/channels.go | 26 ++++++++++++++++++--------
 3 files changed, 21 insertions(+), 11 deletions(-)

diff --git a/go.mod b/go.mod
index 3aa3291c..03c495b0 100644
--- a/go.mod
+++ b/go.mod
@@ -7,7 +7,7 @@ require (
 	github.com/hack-pad/go-indexeddb v0.2.0
 	github.com/pkg/errors v0.9.1
 	github.com/spf13/jwalterweatherman v1.1.0
-	gitlab.com/elixxir/client/v4 v4.3.9-0.20221214173316-c25ac92da147
+	gitlab.com/elixxir/client/v4 v4.3.9-0.20221214184352-25a960514c43
 	gitlab.com/elixxir/crypto v0.0.7-0.20221202020255-46eeab272a7f
 	gitlab.com/elixxir/primitives v0.0.3-0.20221114231218-cc461261a6af
 	gitlab.com/xx_network/crypto v0.0.5-0.20221121220724-8eefdbb0eb46
diff --git a/go.sum b/go.sum
index a58b19f2..d3eea102 100644
--- a/go.sum
+++ b/go.sum
@@ -369,8 +369,8 @@ github.com/zeebo/pcg v1.0.1 h1:lyqfGeWiv4ahac6ttHs+I5hwtH/+1mrhlCtVNQM2kHo=
 github.com/zeebo/pcg v1.0.1/go.mod h1:09F0S9iiKrwn9rlI5yjLkmrug154/YRW6KnnXVDM/l4=
 gitlab.com/elixxir/bloomfilter v0.0.0-20211222005329-7d931ceead6f h1:yXGvNBqzZwAhDYlSnxPRbgor6JWoOt1Z7s3z1O9JR40=
 gitlab.com/elixxir/bloomfilter v0.0.0-20211222005329-7d931ceead6f/go.mod h1:H6jztdm0k+wEV2QGK/KYA+MY9nj9Zzatux/qIvDDv3k=
-gitlab.com/elixxir/client/v4 v4.3.9-0.20221214173316-c25ac92da147 h1:ZVWNGW+CakdUoQ4nr/jBhIZJkuNXprEgxUjsGQyohss=
-gitlab.com/elixxir/client/v4 v4.3.9-0.20221214173316-c25ac92da147/go.mod h1:6zBHVEOwB42N3Ba3879GW0huu595RLSar04KlNsa7QE=
+gitlab.com/elixxir/client/v4 v4.3.9-0.20221214184352-25a960514c43 h1:XZYUEI8i2d/Xu7G2Kgxh46uIb3W2TCzgVcJfGq/RKSA=
+gitlab.com/elixxir/client/v4 v4.3.9-0.20221214184352-25a960514c43/go.mod h1:6zBHVEOwB42N3Ba3879GW0huu595RLSar04KlNsa7QE=
 gitlab.com/elixxir/comms v0.0.4-0.20221110181420-84bca6216fe4 h1:bLRjVCyMVde4n2hTVgoyyIAWrKI4CevpChchkPeb6A0=
 gitlab.com/elixxir/comms v0.0.4-0.20221110181420-84bca6216fe4/go.mod h1:XhI2/CMng+xcH3mAs+1aPz29PSNu1079XMJ8V+xxihw=
 gitlab.com/elixxir/crypto v0.0.7-0.20221202020255-46eeab272a7f h1:e7h3InxgzRnYOqgUgHrTfK6CW8qNM2SiYRj9tOvsFjA=
diff --git a/wasm/channels.go b/wasm/channels.go
index 1ad8c542..c8434b7b 100644
--- a/wasm/channels.go
+++ b/wasm/channels.go
@@ -831,7 +831,11 @@ func GetShareUrlType(_ js.Value, args []js.Value) any {
 //     documentation, this has different meanings depending on the use case.
 //     These use cases may be generic enough that they will not be enumerated
 //     here (int).
-//   - args[4] - JSON of [xxdk.CMIXParams]. If left empty
+//   - args[4] - Set tracked to true if the message should be tracked in the
+//     sendTracker, which allows messages to be shown locally before they are
+//     received on the network. In general, all messages that will be displayed
+//     to the user should be tracked while all actions should not be (boolean).
+//   - args[5] - JSON of [xxdk.CMIXParams]. If left empty
 //     [bindings.GetDefaultCMixParams] will be used internally (Uint8Array).
 //
 // Returns a promise:
@@ -842,11 +846,12 @@ func (cm *ChannelsManager) SendGeneric(_ js.Value, args []js.Value) any {
 	messageType := args[1].Int()
 	message := utils.CopyBytesToGo(args[2])
 	leaseTimeMS := int64(args[3].Int())
-	cmixParamsJSON := utils.CopyBytesToGo(args[4])
+	tracked := args[4].Bool()
+	cmixParamsJSON := utils.CopyBytesToGo(args[5])
 
 	promiseFn := func(resolve, reject func(args ...any) js.Value) {
-		sendReport, err := cm.api.SendGeneric(
-			marshalledChanId, messageType, message, leaseTimeMS, cmixParamsJSON)
+		sendReport, err := cm.api.SendGeneric(marshalledChanId, messageType,
+			message, leaseTimeMS, tracked, cmixParamsJSON)
 		if err != nil {
 			reject(utils.JsTrace(err))
 		} else {
@@ -1014,7 +1019,11 @@ func (cm *ChannelsManager) SendReaction(_ js.Value, args []js.Value) any {
 //     documentation, this has different meanings depending on the use case.
 //     These use cases may be generic enough that they will not be enumerated
 //     here (int).
-//   - args[4] - JSON of [xxdk.CMIXParams]. If left empty
+//   - args[4] - Set tracked to true if the message should be tracked in the
+//     sendTracker, which allows messages to be shown locally before they are
+//     received on the network. In general, all messages that will be displayed
+//     to the user should be tracked while all actions should not be (boolean).
+//   - args[5] - JSON of [xxdk.CMIXParams]. If left empty
 //     [bindings.GetDefaultCMixParams] will be used internally (Uint8Array).
 //
 // Returns a promise:
@@ -1025,11 +1034,12 @@ func (cm *ChannelsManager) SendAdminGeneric(_ js.Value, args []js.Value) any {
 	messageType := args[1].Int()
 	message := utils.CopyBytesToGo(args[2])
 	leaseTimeMS := int64(args[3].Int())
-	cmixParamsJSON := utils.CopyBytesToGo(args[4])
+	tracked := args[4].Bool()
+	cmixParamsJSON := utils.CopyBytesToGo(args[5])
 
 	promiseFn := func(resolve, reject func(args ...any) js.Value) {
-		sendReport, err := cm.api.SendAdminGeneric(
-			marshalledChanId, messageType, message, leaseTimeMS, cmixParamsJSON)
+		sendReport, err := cm.api.SendAdminGeneric(marshalledChanId,
+			messageType, message, leaseTimeMS, tracked, cmixParamsJSON)
 		if err != nil {
 			reject(utils.JsTrace(err))
 		} else {
-- 
GitLab