From fd8044115171500facc2d64ba20c6d4cfa842b6b Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 25 Jun 2020 13:15:57 -0400 Subject: [PATCH] rename the 'getUserHrefFromKeys' function since it's no longer an 'href' --- www/common/common-hash.js | 2 +- www/settings/inner.js | 2 +- www/teams/inner.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/www/common/common-hash.js b/www/common/common-hash.js index 232d273b4..20e229fdf 100644 --- a/www/common/common-hash.js +++ b/www/common/common-hash.js @@ -100,7 +100,7 @@ var factory = function (Util, Crypto, Nacl) { 3. the username is everything before the `@`. */ - Hash.getUserHrefFromKeys = function (origin, username, pubkey) { // XXX + Hash.getPublicSigningKeyString = function (origin, username, pubkey) { return '[' + username + '@' + diff --git a/www/settings/inner.js b/www/settings/inner.js index 234402ab5..df24e71d2 100644 --- a/www/settings/inner.js +++ b/www/settings/inner.js @@ -168,7 +168,7 @@ define([ var publicKey = privateData.edPublic; if (publicKey) { var $key = $('
', { 'class': 'cp-sidebarlayout-element' }).appendTo($div); - var userHref = Hash.getUserHrefFromKeys(privateData.origin, accountName, publicKey); + var userHref = Hash.getPublicSigningKeyString(privateData.origin, accountName, publicKey); var $pubLabel = $('', { 'class': 'label' }) .text(Messages.settings_publicSigningKey); $key.append($pubLabel).append(UI.dialog.selectable(userHref)); diff --git a/www/teams/inner.js b/www/teams/inner.js index 30612f3c3..0f3db0829 100644 --- a/www/teams/inner.js +++ b/www/teams/inner.js @@ -910,7 +910,7 @@ define([ var name = team.name; if (publicKey) { var $key = $('
', {'class': 'cp-sidebarlayout-element'}).appendTo($div); - var userHref = Hash.getUserHrefFromKeys(privateData.origin, name, publicKey); + var userHref = Hash.getPublicSigningKeyString(privateData.origin, name, publicKey); var $pubLabel = $('', {'class': 'label'}) .text(Messages.settings_publicSigningKey); $key.append($pubLabel).append(UI.dialog.selectable(userHref));