Skip to content
Snippets Groups Projects
Commit f76b8367 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

GetStorageTag -> GetDatabaseName

parent 392cbb8b
No related branches found
No related tags found
1 merge request!67fix for latest client release
...@@ -47,7 +47,7 @@ func newDMClientJS(api *bindings.DMClient) map[string]any { ...@@ -47,7 +47,7 @@ func newDMClientJS(api *bindings.DMClient) map[string]any {
"ExportPrivateIdentity": js.FuncOf(cm.ExportPrivateIdentity), "ExportPrivateIdentity": js.FuncOf(cm.ExportPrivateIdentity),
"SetNickname": js.FuncOf(cm.SetNickname), "SetNickname": js.FuncOf(cm.SetNickname),
"GetNickname": js.FuncOf(cm.GetNickname), "GetNickname": js.FuncOf(cm.GetNickname),
"GetStorageTag": js.FuncOf(cm.GetStorageTag), "GetDatabaseName": js.FuncOf(cm.GetDatabaseName),
// DM Sending Methods and Reports // DM Sending Methods and Reports
"SendText": js.FuncOf(cm.SendText), "SendText": js.FuncOf(cm.SendText),
...@@ -486,14 +486,14 @@ func (ch *DMClient) GetNickname(_ js.Value, args []js.Value) any { ...@@ -486,14 +486,14 @@ func (ch *DMClient) GetNickname(_ js.Value, args []js.Value) any {
return nickname 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. // can separately listen and read updates there.
// //
// Parameters: // Parameters:
// //
// Returns: // Returns:
// - The storage tag (string). // - 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()) + return (base64.RawStdEncoding.EncodeToString(dmc.api.GetPublicKey()) +
"_speakeasy_dm") "_speakeasy_dm")
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment