From 6371b765984a8dc9201f37ca89ce2dcf5d6fb78c Mon Sep 17 00:00:00 2001
From: Roeland Jago Douma <roeland@famdouma.nl>
Date: Wed, 13 Dec 2017 19:57:43 +0100
Subject: [PATCH] Since we now always generate an avatar do not load the
 placeholder

The js and php code differ ever so slightly. So having the placeholder
for a second and then the image is just weird.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
---
 core/js/jquery.avatar.js | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/core/js/jquery.avatar.js b/core/js/jquery.avatar.js
index 54518c75cc7..b44fe5fd631 100644
--- a/core/js/jquery.avatar.js
+++ b/core/js/jquery.avatar.js
@@ -136,11 +136,6 @@
 				}
 			});
 		} else {
-			// We already have the displayname so set the placeholder (to show at least something)
-			if (!hidedefault) {
-				$div.imageplaceholder(displayname);
-			}
-
 			var img = new Image();
 
 			// If the new image loads successfully set it.
-- 
GitLab