mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
add error message
This commit is contained in:
parent
25c473777a
commit
5c3c3d7d47
@ -629,7 +629,10 @@ define([
|
||||
content: [Icons.get('unfriend'), h('span', Messages.contacts_remove)],
|
||||
action: function () {
|
||||
var channel = state.channels[id];
|
||||
if (!channel.isFriendChat) { return; }
|
||||
if (!channel.isFriendChat) {
|
||||
UI.warn(Messages.error);
|
||||
return;
|
||||
}
|
||||
var curvePublic = channel.curvePublic;
|
||||
var friend = contactsData[curvePublic] || friendData;
|
||||
var name = Util.fixHTML(UI.getDisplayName(friend.name || friend.displayName));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user