Show conversation logo on sidebar

This commit is contained in:
Pierre HUBERT 2021-03-07 15:35:50 +01:00
parent 4fdb74d9d0
commit ca7768c8a7

View File

@ -556,11 +556,18 @@ const SidebarMain = {
}); });
// Icon // Icon
createElem2({ if (conv.logo == null)
appendTo: a, createElem2({
type: "i", appendTo: a,
class: "fa fa-comments" type: "i",
}); class: "fa fa-comments"
});
else
createElem2({
appendTo: a,
type: "img",
src: conv.logo
});
// Conversation name // Conversation name
createElem2({ createElem2({