diff --git a/go.mod b/go.mod index 74137d2f0951fd7f027acb7b89d0e6eb38ec5176..1a894e77b4c582aeaf561624d9567f2345dbef30 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/pkg/errors v0.9.1 github.com/spf13/cobra v1.5.0 github.com/spf13/jwalterweatherman v1.1.0 - gitlab.com/elixxir/client/v4 v4.3.12-0.20230301225633-485aa0551e74 + gitlab.com/elixxir/client/v4 v4.3.12-0.20230302172401-c1a0e706da05 gitlab.com/elixxir/crypto v0.0.7-0.20230214180106-72841fd1e426 gitlab.com/elixxir/primitives v0.0.3-0.20230214180039-9a25e2d3969c gitlab.com/xx_network/crypto v0.0.5-0.20230214003943-8a09396e95dd diff --git a/go.sum b/go.sum index 3451557c191728431b3c4ed2bf85034d7398cded..a7a7f7b4f962474b566a74eb8eb8d4b2f3979b4b 100644 --- a/go.sum +++ b/go.sum @@ -525,6 +525,8 @@ gitlab.com/elixxir/client/v4 v4.3.12-0.20230301223455-d1b6a65d6b10 h1:AW9QWZDIFU gitlab.com/elixxir/client/v4 v4.3.12-0.20230301223455-d1b6a65d6b10/go.mod h1:Hjx99EdI86q67mHzZVR2Dw37fuTCzDaChM/NVX3CcPU= gitlab.com/elixxir/client/v4 v4.3.12-0.20230301225633-485aa0551e74 h1:2ojGONALHxL3ObcSZZDzZfvCiRXLZAGqsCKtvFQtNNg= gitlab.com/elixxir/client/v4 v4.3.12-0.20230301225633-485aa0551e74/go.mod h1:Hjx99EdI86q67mHzZVR2Dw37fuTCzDaChM/NVX3CcPU= +gitlab.com/elixxir/client/v4 v4.3.12-0.20230302172401-c1a0e706da05 h1:vWiqRaniCpl25Ank0Jy5MroAceqJRFO5F8ZdhXDLKuU= +gitlab.com/elixxir/client/v4 v4.3.12-0.20230302172401-c1a0e706da05/go.mod h1:Hjx99EdI86q67mHzZVR2Dw37fuTCzDaChM/NVX3CcPU= gitlab.com/elixxir/comms v0.0.4-0.20230214180204-3aba2e6795af h1:Eye4+gZEUbOfz4j51WplYD9d7Gnr1s3wKYkEnCfhPaw= gitlab.com/elixxir/comms v0.0.4-0.20230214180204-3aba2e6795af/go.mod h1:ud3s2aHx5zu7lJhBpUMUXxjLwl8PH8z8cl64Om9U7q8= gitlab.com/elixxir/crypto v0.0.7-0.20230214180106-72841fd1e426 h1:O9Xz/ioc9NAj5k/QUsR0W4LCz2uVHawJF89yPTI7NXk= diff --git a/wasm/dm.go b/wasm/dm.go index 0393ac8eb41e1d7801ec26378f4e6e36b2d108f8..82fec6579ccdadafbd57245c010fcbb7cf962a98 100644 --- a/wasm/dm.go +++ b/wasm/dm.go @@ -467,17 +467,14 @@ func (ch *DMClient) SetNickname(_ js.Value, args []js.Value) any { return nil } -// GetNickname returns the nickname set for a given channel. Returns an error if +// GetNickname returns the nickname set for this user. Returns an error if // there is no nickname set. // -// Parameters: -// - args[0] - Marshalled bytes if the channel's [id.ID] (Uint8Array). -// // Returns: // - The nickname (string). // - Throws TypeError if the channel has no nickname set. func (ch *DMClient) GetNickname(_ js.Value, args []js.Value) any { - nickname, err := ch.api.GetNickname(utils.CopyBytesToGo(args[0])) + nickname, err := ch.api.GetNickname() if err != nil { utils.Throw(utils.TypeError, err) return nil