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,