From bdfc3b69b81d51ca9148df6437d8e19be7d5db02 Mon Sep 17 00:00:00 2001
From: Jono Wenger <jono@elixxir.io>
Date: Tue, 20 Sep 2022 21:37:32 -0700
Subject: [PATCH] Fix more doc links

---
 wasm/docs.go    | 2 ++
 wasm/dummy.go   | 8 ++++----
 wasm/e2eAuth.go | 6 +++---
 wasm/follow.go  | 6 +++---
 wasm/ud.go      | 7 ++++---
 5 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/wasm/docs.go b/wasm/docs.go
index 9383c8a7..d26e5bdb 100644
--- a/wasm/docs.go
+++ b/wasm/docs.go
@@ -11,6 +11,7 @@ package wasm
 
 import (
 	"github.com/spf13/jwalterweatherman"
+	"gitlab.com/elixxir/client/auth"
 	"gitlab.com/elixxir/client/catalog"
 	"gitlab.com/elixxir/client/channels"
 	"gitlab.com/elixxir/client/cmix"
@@ -60,4 +61,5 @@ var (
 	_ = jwalterweatherman.LogListener(nil)
 	_ = format.Message{}
 	_ = restlike.Message{}
+	_ = auth.Callbacks(nil)
 )
diff --git a/wasm/dummy.go b/wasm/dummy.go
index f9e1d586..93337713 100644
--- a/wasm/dummy.go
+++ b/wasm/dummy.go
@@ -90,10 +90,10 @@ func (dt *DummyTraffic) SetStatus(_ js.Value, args []js.Value) interface{} {
 
 // GetStatus returns the current state of the [DummyTraffic] manager's sending
 // thread. Note that this function does not return the status set by the most
-// recent call to [SetStatus]. Instead, this call returns the current status of
-// the sending thread. This is due to the small delay that may occur between
-// calling [SetStatus] and the sending thread taking into effect that status
-// change.
+// recent call to [DummyTraffic.SetStatus]. Instead, this call returns the
+// current status of the sending thread. This is due to the small delay that may
+// occur between calling [DummyTraffic.SetStatus] and the sending thread taking
+// into effect that status change.
 //
 // Returns:
 //   - Returns true if sending thread is sending dummy messages and false if
diff --git a/wasm/e2eAuth.go b/wasm/e2eAuth.go
index 391d348e..a2627800 100644
--- a/wasm/e2eAuth.go
+++ b/wasm/e2eAuth.go
@@ -18,8 +18,8 @@ import (
 // structure to the passed contact, as well as the passed facts (it will error
 // if they are too long).
 //
-// The other party must accept the request by calling [Confirm] to be able to
-// send messages using [E2e.SendE2E]. When the other party does so, the
+// The other party must accept the request by calling [E2e.Confirm] to be able
+// to send messages using [E2e.SendE2E]. When the other party does so, the
 // "confirm" callback will get called.
 //
 // The round the request is initially sent on will be returned, but the request
@@ -69,7 +69,7 @@ func (e *E2e) Request(_ js.Value, args []js.Value) interface{} {
 // The confirmation sends as a critical message; if the round it sends on fails,
 // it will be auto resent by the cMix client.
 //
-// If the confirmation must be resent, use [ReplayConfirm].
+// If the confirmation must be resent, use [E2e.ReplayConfirm].
 //
 // Parameters:
 //  - args[0] - Marshalled bytes of the partner [contact.Contact] (Uint8Array).
diff --git a/wasm/follow.go b/wasm/follow.go
index 27c9f90b..f794aa60 100644
--- a/wasm/follow.go
+++ b/wasm/follow.go
@@ -135,9 +135,9 @@ func (c *Cmix) GetNodeRegistrationStatus(js.Value, []js.Value) interface{} {
 // HasRunningProcessies checks if any background threads are running and returns
 // true if one or more are.
 //
-// This is meant to be used when [NetworkFollowerStatus] returns Stopping. Due
-// to the handling of comms on iOS, where the OS can block indefinitely, it may
-// not enter the stopped state appropriately. This can be used instead.
+// This is meant to be used when [Cmix.NetworkFollowerStatus] returns Stopping.
+// Due to the handling of comms on iOS, where the OS can block indefinitely, it
+// may not enter the stopped state appropriately. This can be used instead.
 //
 // Returns:
 //  - True if there are running processes (boolean).
diff --git a/wasm/ud.go b/wasm/ud.go
index ab90997b..11cbbb1b 100644
--- a/wasm/ud.go
+++ b/wasm/ud.go
@@ -198,9 +198,10 @@ func (ud *UserDiscovery) GetContact(js.Value, []js.Value) interface{} {
 	return utils.CopyBytesToJS(c)
 }
 
-// ConfirmFact confirms a fact first registered via [SendRegisterFact]. The
-// confirmation ID comes from [SendRegisterFact] while the code will come over
-// the associated communications system.
+// ConfirmFact confirms a fact first registered via
+// [UserDiscovery.SendRegisterFact]. The confirmation ID comes from
+// [UserDiscovery.SendRegisterFact] while the code will come over the associated
+// communications system.
 //
 // Parameters:
 //  - args[0] - Confirmation ID (string).
-- 
GitLab