From ca7768c8a776edaa0f945bbd0a40789fe2eda5cc Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sun, 7 Mar 2021 15:35:50 +0100 Subject: [PATCH] Show conversation logo on sidebar --- assets/js/components/sidebar/main.js | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/assets/js/components/sidebar/main.js b/assets/js/components/sidebar/main.js index f8d88104..48865dab 100644 --- a/assets/js/components/sidebar/main.js +++ b/assets/js/components/sidebar/main.js @@ -556,11 +556,18 @@ const SidebarMain = { }); // Icon - createElem2({ - appendTo: a, - type: "i", - class: "fa fa-comments" - }); + if (conv.logo == null) + createElem2({ + appendTo: a, + type: "i", + class: "fa fa-comments" + }); + else + createElem2({ + appendTo: a, + type: "img", + src: conv.logo + }); // Conversation name createElem2({