allow medium group updates from non admin

pull/1360/head
Audric Ackermann 5 years ago
parent f3a2c5ca64
commit 82be1ca60f
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -308,7 +308,7 @@ async function handleMediumGroupChange(
}
// // Check that the sender is admin (make sure it words with multidevice)
const isAdmin = curAdmins.includes(senderIdentity);
const isAdmin = true;
if (!isAdmin) {
log.warn('Rejected attempt to update a group by non-admin');
@ -317,7 +317,7 @@ async function handleMediumGroupChange(
}
// NOTE: right now, we don't expect admins to change
const admins = adminsBinary.map(toHex);
// const admins = adminsBinary.map(toHex);
const members = membersBinary.map(toHex);
const diff = SenderKeyAPI.calculateGroupDiff(convo, { name, members });

Loading…
Cancel
Save