mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
remove UPDATE type of closed group control message
This commit is contained in:
parent
f32919985d
commit
c090782919
|
@ -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
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue