Unfriend and update username - beta
This commit is contained in:
@@ -211,6 +211,7 @@ define([
|
||||
$('<span>', {'class': 'name'}).text(name).appendTo($rightCol);
|
||||
var proxy = Cryptpad.getProxy();
|
||||
if (Cryptpad.isLoggedIn() && data.edPublic && data.edPublic !== proxy.edPublic) {
|
||||
console.log(data.edPublic);
|
||||
if (!proxy.friends || !proxy.friends[data.edPublic]) {
|
||||
var $button = $('<button>', {'class': 'friend'}).appendTo($rightCol);
|
||||
$button.text('Add friend').click(function (e) {
|
||||
|
||||
Reference in New Issue
Block a user