fix: legacy group invite do not expire

pull/2940/head
Audric Ackermann 1 year ago
parent 8f99e82935
commit f10a20a2ea

@ -23,10 +23,6 @@
.module-contact-name.compact {
display: block;
span::after {
content: '\00a0';
}
}
// Module: Message

@ -1,4 +1,5 @@
// TODO legacy messages support will be removed in a future release
import { isEmpty } from 'lodash';
import { ConversationModel } from '../../models/conversation';
import { ProtobufUtils, SignalService } from '../../protobuf';
import { ReleasedFeatures } from '../../util/releaseFeature';
@ -55,6 +56,7 @@ export function checkShouldDisappearButIsntMessage(
expirationMode === 'off' &&
expirationTimer === 0 &&
convo.getExpirationMode() !== 'off' &&
convo.getExpireTimer() !== 0
convo.getExpireTimer() !== 0 &&
isEmpty(content.dataMessage?.closedGroupControlMessage?.encryptionKeyPair) // group invites do not expire, and have this field set
);
}

Loading…
Cancel
Save