From a511fccdc2c8be9bc691fd819b1f542486d6f1ef Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 22 Oct 2019 16:15:13 +0200 Subject: [PATCH] Don't log error when a friend's avatar has been deleted --- www/common/common-ui-elements.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 2f7261326..6bce00d8f 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -2087,10 +2087,7 @@ define([ var cryptKey = Hash.encodeBase64(secret.keys && secret.keys.cryptKey); var src = origin + Hash.getBlobPathFromHex(hexFileName); common.getFileSize(hexFileName, function (e, data) { - if (e || !data) { - displayDefault(); - return void console.error(e || "404 avatar"); - } + if (e || !data) { return void displayDefault(); } if (typeof data !== "number") { return void displayDefault(); } if (Util.bytesToMegabytes(data) > 0.5) { return void displayDefault(); } var $img = $('').appendTo($container);