From 13dc587c440e4712281f6c0b7aabae9dc0379c81 Mon Sep 17 00:00:00 2001 From: Jono Wenger <jono@elixxir.io> Date: Mon, 24 Oct 2022 18:27:35 -0700 Subject: [PATCH] Fix comments --- wasm/channels.go | 6 +++--- wasm/docs.go | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/wasm/channels.go b/wasm/channels.go index dc68f919..077632f9 100644 --- a/wasm/channels.go +++ b/wasm/channels.go @@ -576,7 +576,7 @@ func GetSavedChannelPrivateKeyUNSAFE(_ js.Value, args []js.Value) interface{} { // // Parameters: // - args[0] - The channel's share URL (string). Should be received from -// another user or generated via [GetShareURL]. +// another user or generated via [ChannelsManager.GetShareURL]. // // Returns: // - The channel pretty print (string). @@ -596,7 +596,7 @@ func DecodePublicURL(_ js.Value, args []js.Value) interface{} { // // Parameters: // - args[0] - The channel's share URL (string). Should be received from -// another user or generated via [GetShareURL]. +// another user or generated via [ChannelsManager.GetShareURL]. // - args[1] - The password needed to decrypt the secret data in the URL // (string). // @@ -772,7 +772,7 @@ type ShareURL struct { // uses is set as a URL parameter using the key [broadcast.MaxUsesKey]. Note // that this number is also encoded in the secret data for private and secret // URLs, so if the number is changed in the URL, is will be verified when -// calling [ChannelsManager.JoinChannelFromURL]. There is no enforcement for +// calling [DecodePublicURL] or [DecodePrivateURL]. There is no enforcement for // public URLs. // // Parameters: diff --git a/wasm/docs.go b/wasm/docs.go index d26e5bdb..e644cc07 100644 --- a/wasm/docs.go +++ b/wasm/docs.go @@ -22,6 +22,7 @@ import ( "gitlab.com/elixxir/client/groupChat/groupStore" "gitlab.com/elixxir/client/restlike" "gitlab.com/elixxir/client/single" + "gitlab.com/elixxir/crypto/broadcast" "gitlab.com/elixxir/crypto/channel" "gitlab.com/elixxir/crypto/contact" "gitlab.com/elixxir/crypto/cyclic" @@ -32,6 +33,7 @@ import ( "gitlab.com/xx_network/primitives/id" "gitlab.com/xx_network/primitives/id/ephemeral" "gitlab.com/xx_network/primitives/ndf" + "gitlab.com/xx_network/primitives/netTime" ) // These objects are imported so that doc linking on pkg.go.dev does not require @@ -62,4 +64,7 @@ var ( _ = format.Message{} _ = restlike.Message{} _ = auth.Callbacks(nil) + _ = broadcast.PrivacyLevel(0) + _ = broadcast.Channel{} + _ = netTime.Now ) -- GitLab