rename the 'getUserHrefFromKeys' function

since it's no longer an 'href'
pull/1/head
ansuz 4 years ago
parent ebcc9a069b
commit fd80441151

@ -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 +
'@' +

@ -168,7 +168,7 @@ define([
var publicKey = privateData.edPublic;
if (publicKey) {
var $key = $('<div>', { 'class': 'cp-sidebarlayout-element' }).appendTo($div);
var userHref = Hash.getUserHrefFromKeys(privateData.origin, accountName, publicKey);
var userHref = Hash.getPublicSigningKeyString(privateData.origin, accountName, publicKey);
var $pubLabel = $('<span>', { 'class': 'label' })
.text(Messages.settings_publicSigningKey);
$key.append($pubLabel).append(UI.dialog.selectable(userHref));

@ -910,7 +910,7 @@ define([
var name = team.name;
if (publicKey) {
var $key = $('<div>', {'class': 'cp-sidebarlayout-element'}).appendTo($div);
var userHref = Hash.getUserHrefFromKeys(privateData.origin, name, publicKey);
var userHref = Hash.getPublicSigningKeyString(privateData.origin, name, publicKey);
var $pubLabel = $('<span>', {'class': 'label'})
.text(Messages.settings_publicSigningKey);
$key.append($pubLabel).append(UI.dialog.selectable(userHref));

Loading…
Cancel
Save