Merge pull request #1360 from Bilb/allow-updates-from-non-admin

pull/1363/head
Audric Ackermann 5 years ago committed by GitHub
commit 8a9ec5a74e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -308,7 +308,7 @@ async function handleMediumGroupChange(
} }
// // Check that the sender is admin (make sure it words with multidevice) // // Check that the sender is admin (make sure it words with multidevice)
const isAdmin = curAdmins.includes(senderIdentity); const isAdmin = true;
if (!isAdmin) { if (!isAdmin) {
log.warn('Rejected attempt to update a group by non-admin'); 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 // 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 members = membersBinary.map(toHex);
const diff = SenderKeyAPI.calculateGroupDiff(convo, { name, members }); const diff = SenderKeyAPI.calculateGroupDiff(convo, { name, members });

Loading…
Cancel
Save