|
|
@ -41,7 +41,6 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
$container.addClass('cp-app-contacts-initializing');
|
|
|
|
$container.addClass('cp-app-contacts-initializing');
|
|
|
|
|
|
|
|
|
|
|
|
var spinner = '<span class="fa fa-spinner fa-pulse fa-4x fa-fw"></span>';
|
|
|
|
|
|
|
|
var messaging = h('div#cp-app-contacts-messaging', [
|
|
|
|
var messaging = h('div#cp-app-contacts-messaging', [
|
|
|
|
h('span.fa.fa-spinner.fa-pulse.fa-4x.fa-fw.cp-app-contacts-spinner'),
|
|
|
|
h('span.fa.fa-spinner.fa-pulse.fa-4x.fa-fw.cp-app-contacts-spinner'),
|
|
|
|
h('div.cp-app-contacts-info', [
|
|
|
|
h('div.cp-app-contacts-info', [
|
|
|
@ -210,7 +209,6 @@ define([
|
|
|
|
$(removeHistory).click(function () {
|
|
|
|
$(removeHistory).click(function () {
|
|
|
|
// XXX
|
|
|
|
// XXX
|
|
|
|
console.error("TODO: only display clear button if owned");
|
|
|
|
console.error("TODO: only display clear button if owned");
|
|
|
|
return;
|
|
|
|
|
|
|
|
UI.confirm(Messages.contacts_confirmRemoveHistory, function (yes) {
|
|
|
|
UI.confirm(Messages.contacts_confirmRemoveHistory, function (yes) {
|
|
|
|
if (!yes) { return; }
|
|
|
|
if (!yes) { return; }
|
|
|
|
|
|
|
|
|
|
|
@ -607,8 +605,9 @@ define([
|
|
|
|
$messages.find(userQuery(curvePublic)).remove();
|
|
|
|
$messages.find(userQuery(curvePublic)).remove();
|
|
|
|
if (channel && channel.curvePublic === curvePublic) {
|
|
|
|
if (channel && channel.curvePublic === curvePublic) {
|
|
|
|
showInfo();
|
|
|
|
showInfo();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!removedByMe) {
|
|
|
|
// TODO UI.alert if this is triggered by the other guy
|
|
|
|
// TODO UI.alert if this is triggered by the other guy
|
|
|
|
// (we need more data on the 'unfriend' event to determine its origin)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|