lint compliance

pull/1/head
yflory 7 years ago
parent f3c36bfd57
commit ac989a1e73

@ -545,13 +545,13 @@ define([
// We need to use GET_HISTORY_RANGE to make sure we won't get the full history // We need to use GET_HISTORY_RANGE to make sure we won't get the full history
var txid = Util.uid(); var txid = Util.uid();
initRangeRequest(txid, chan.id, undefined); initRangeRequest(txid, chan.id, undefined);
var msg = ['GET_HISTORY_RANGE', chan.id, { var msg0 = ['GET_HISTORY_RANGE', chan.id, {
//from: hash, //from: hash,
count: 10, count: 10,
txid: txid, txid: txid,
} }
]; ];
network.sendto(network.historyKeeper, JSON.stringify(msg)).then(function () { network.sendto(network.historyKeeper, JSON.stringify(msg0)).then(function () {
}, function (err) { }, function (err) {
throw new Error(err); throw new Error(err);
}); });

@ -701,7 +701,7 @@ define([
$lAvatar.find('.cp-avatar-default, media-tag').remove(); $lAvatar.find('.cp-avatar-default, media-tag').remove();
var $div = $('<div>'); var $div = $('<div>');
common.displayAvatar($div, null, name, function ($img) { common.displayAvatar($div, null, name, function () {
$mAvatar.html($div.html()); $mAvatar.html($div.html());
$lAvatar.find('.cp-app-contacts-right-col').before($div.html()); $lAvatar.find('.cp-app-contacts-right-col').before($div.html());
}); });

Loading…
Cancel
Save