From 430a6f7b77a96e326e023d671cee62984e8b2d88 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 28 Aug 2017 17:51:50 +0200 Subject: [PATCH] lint compliance --- www/common/common-messaging.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/www/common/common-messaging.js b/www/common/common-messaging.js index 679694188..a0b39c88f 100644 --- a/www/common/common-messaging.js +++ b/www/common/common-messaging.js @@ -145,12 +145,12 @@ define([ // FIXME clarify this function's name addToFriendList(common, msgData, function (err) { if (err) { - return void Cryptpad.onFriendComplete({ + return void common.onFriendComplete({ logText: common.Messages.contacts_addError, netfluxId: sender }); } - Cryptpad.onFriendComplete({ + common.onFriendComplete({ logText: common.Messages.contacts_added, netfluxId: sender }); @@ -163,7 +163,7 @@ define([ if (msg[0] === "FRIEND_REQ_NOK") { var i = pendingRequests.indexOf(sender); if (i !== -1) { pendingRequests.splice(i, 1); } - Cryptpad.onFriendComplete({ + common.onFriendComplete({ logText: common.Messages.contacts_rejected, netfluxId: sender }); @@ -175,12 +175,12 @@ define([ if (!data) { return; } addToFriendList(common, data, function (err) { if (err) { - return void Cryptpad.onFriendComplete({ + return void common.onFriendComplete({ logText: common.Messages.contacts_addError, netfluxId: sender }); } - Cryptpad.onFriendComplete({ + common.onFriendComplete({ logText: common.Messages.contacts_added, netfluxId: sender });