Apply conversations color

This commit is contained in:
2021-03-07 14:36:17 +01:00
parent 9dbbf0eb5f
commit d425734810
2 changed files with 9 additions and 0 deletions

View File

@ -302,6 +302,10 @@ const ConvChatWindow = {
//Change the name of the conversation
this.changeName(await getConvName(conv), conversationWindow);
// Apply the color of the conversation (if any)
if (conv.color)
conversationWindow.rootElem.setAttribute("style", "--primary-blue: #" +conv.color)
// Update conversation members informations
this.updateMembersList(conversationInfos);