From 49e7b7e8ab183944c6f50383fe80641df31b9ddd Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 16 May 2019 19:06:58 +0200 Subject: [PATCH] Can open private conversation from sidebar --- assets/js/components/sidebar/main.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/assets/js/components/sidebar/main.js b/assets/js/components/sidebar/main.js index 74097b00..9ed87c66 100644 --- a/assets/js/components/sidebar/main.js +++ b/assets/js/components/sidebar/main.js @@ -230,6 +230,18 @@ ComunicWeb.components.sideBar.main = { innerHTML: userFullName(user) }); + // Private conversation + createElem2({ + appendTo: a, + type: "span", + class: "pull-right-container", + innerHTML: "", + onclick: (e) => { + e.stopImmediatePropagation(); + ComunicWeb.components.conversations.manager.openPrivate(user.userID); + } + }); + // Supplementary information let subInfoEl = createElem2({ appendTo: a,