From f76b83671e8018cef65f835e8e6cd68a983af7a1 Mon Sep 17 00:00:00 2001 From: "Richard T. Carback III" <rick.carback@gmail.com> Date: Tue, 28 Feb 2023 17:49:25 +0000 Subject: [PATCH] GetStorageTag -> GetDatabaseName --- wasm/dm.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wasm/dm.go b/wasm/dm.go index 49cb2bc6..f1d92733 100644 --- a/wasm/dm.go +++ b/wasm/dm.go @@ -47,7 +47,7 @@ func newDMClientJS(api *bindings.DMClient) map[string]any { "ExportPrivateIdentity": js.FuncOf(cm.ExportPrivateIdentity), "SetNickname": js.FuncOf(cm.SetNickname), "GetNickname": js.FuncOf(cm.GetNickname), - "GetStorageTag": js.FuncOf(cm.GetStorageTag), + "GetDatabaseName": js.FuncOf(cm.GetDatabaseName), // DM Sending Methods and Reports "SendText": js.FuncOf(cm.SendText), @@ -486,14 +486,14 @@ func (ch *DMClient) GetNickname(_ js.Value, args []js.Value) any { return nickname } -// GetStorageTag returns the storage tag, so users listening to the database +// GetDatabaseName returns the storage tag, so users listening to the database // can separately listen and read updates there. // // Parameters: // // Returns: // - The storage tag (string). -func (dmc *DMClient) GetStorageTag(_ js.Value, args []js.Value) any { +func (dmc *DMClient) GetDatabaseName(_ js.Value, args []js.Value) any { return (base64.RawStdEncoding.EncodeToString(dmc.api.GetPublicKey()) + "_speakeasy_dm") } -- GitLab