remove UPDATE type of closed group control message

This commit is contained in:
Audric Ackermann 2021-06-10 09:00:54 +10:00
parent f32919985d
commit c090782919
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4
2 changed files with 0 additions and 7 deletions

View File

@ -99,7 +99,6 @@ message DataMessage {
enum Type {
NEW = 1; // publicKey, name, encryptionKeyPair, members, admins, expireTimer
UPDATE = 2; // name, members
ENCRYPTION_KEY_PAIR = 3; // publicKey, wrappers
NAME_CHANGE = 4; // name
MEMBERS_ADDED = 5; // members

View File

@ -56,12 +56,6 @@ export async function handleClosedGroupControlMessage(
return;
}
if (type === Type.UPDATE) {
window?.log?.error('ClosedGroup: Got a non explicit group update. dropping it ', type);
await removeFromCache(envelope);
return;
}
// We drop New closed group message from our other devices, as they will come as ConfigurationMessage instead
if (type === Type.ENCRYPTION_KEY_PAIR) {
const isComingFromGroupPubkey =