mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-24 18:08:50 +00:00
Fix bad check
This commit is contained in:
parent
83580fd627
commit
ed850258d4
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user