diff --git a/go.mod b/go.mod index 78310690bd2e9d8f491ce78f6fa826fff5edff7d..26ee9be1b1b88392c5b0db648e17fc3126fc286e 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.6.2-0.20230425224351-c51d46dbbc1e + gitlab.com/elixxir/client/v4 v4.6.2-0.20230426201343-50204e586ad5 gitlab.com/elixxir/crypto v0.0.7-0.20230424221508-14c052d4b967 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 96bc164016ee8692b00de0c1671b079ea4ccbd36..cbfde05e96dbd5f529ebf9eddb7aa2b760c73e81 100644 --- a/go.sum +++ b/go.sum @@ -513,6 +513,8 @@ gitlab.com/elixxir/client/v4 v4.6.2-0.20230425190953-cd51598e9245 h1:pBwoSYD+BFI gitlab.com/elixxir/client/v4 v4.6.2-0.20230425190953-cd51598e9245/go.mod h1:G+lN+LvQPGcm5BQnrhnqT1xiRIAzH3OffAM+5oI9SUg= gitlab.com/elixxir/client/v4 v4.6.2-0.20230425224351-c51d46dbbc1e h1:Ey6eRhlbmeVp45VrTxxRXwcA7hBe54IosTSQ0t9HHeM= gitlab.com/elixxir/client/v4 v4.6.2-0.20230425224351-c51d46dbbc1e/go.mod h1:FvhgMxYfVF+wG5BspDoAmNy9GiI2bZQXiswGpzOLWPM= +gitlab.com/elixxir/client/v4 v4.6.2-0.20230426201343-50204e586ad5 h1:itxKjRn/86eUbrz1hfgo/Ysp792vWnIPDCovqQlIveg= +gitlab.com/elixxir/client/v4 v4.6.2-0.20230426201343-50204e586ad5/go.mod h1:FvhgMxYfVF+wG5BspDoAmNy9GiI2bZQXiswGpzOLWPM= gitlab.com/elixxir/comms v0.0.4-0.20230310205528-f06faa0d2f0b h1:8AVK93UEs/aufoqtFgyMVt9gf0oJ8F4pA60ZvEVvG+s= gitlab.com/elixxir/comms v0.0.4-0.20230310205528-f06faa0d2f0b/go.mod h1:z+qW0D9VpY5QKTd7wRlb5SK4kBNqLYsa4DXBcUXue9Q= gitlab.com/elixxir/comms v0.0.4-0.20230322130755-e59b16bce601 h1:l9ZVDOXf0fvbFnNXWmwnsEIvUIUL5fy3mFexrYg8dx4= diff --git a/wasm/channels.go b/wasm/channels.go index 88f679ce45887dd0e58bef310bf65f2054aa6630..2b572baf0d87f68b57f50cb3a7a0c445ea7acf74 100644 --- a/wasm/channels.go +++ b/wasm/channels.go @@ -1230,10 +1230,11 @@ func (cm *ChannelsManager) SendInvite(_ js.Value, args []js.Value) any { cmixParamsJSON = utils.CopyBytesToGo(args[5]) ) + // fixme: add pings to wasm promiseFn := func(resolve, reject func(args ...any) js.Value) { sendReport, err := cm.api.SendInvite(marshalledChanId, marshalledInviteToId, msg, host, maxUses, leaseTimeMS, - cmixParamsJSON) + cmixParamsJSON, nil) if err != nil { reject(utils.JsTrace(err)) } else {