From ed850258d42b0359b2ff87af8331241c34cb6600 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 6 Mar 2021 19:06:40 +0100 Subject: [PATCH] Fix bad check --- assets/js/components/conversations/chatWindows.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/components/conversations/chatWindows.js b/assets/js/components/conversations/chatWindows.js index f76bd311..6bf53b57 100644 --- a/assets/js/components/conversations/chatWindows.js +++ b/assets/js/components/conversations/chatWindows.js @@ -430,7 +430,7 @@ const ConvChatWindow = { /** @type {Conversation} */ const conv = info.infos; - let isAdmin = conv.members.find(m => m.user_id).is_admin; + let isAdmin = conv.members.find(m => m.user_id == userID()).is_admin; let canAddUser = conv.group_id == null && (conv.can_everyone_add_members || isAdmin); let canRemoveUsers = isAdmin && canAddUser; @@ -565,7 +565,7 @@ const ConvChatWindow = { let removeLink = createElem2({ type: "a", appendTo: status, - innerHTML: "Remove" + innerHTML: tr("Remove") }) removeLink.addEventListener("click", async e => {