feat: only show banner after v2 is released

pull/2660/head
William Grant 2 years ago
parent a50ea95bf3
commit 1de21ea8c0

@ -409,23 +409,18 @@ export async function innerHandleSwarmContentMessage(
const expireUpdate = await checkForExpireUpdate(conversationModelForUIUpdate, content);
if (expireUpdate && !isEmpty(expireUpdate)) {
// TODO legacy messages support will be removed in a future release
if (expireUpdate && !isEmpty(expireUpdate) && expireUpdate.isDisappearingMessagesV2Released) {
await checkHasOutdatedClient(
conversationModelForUIUpdate,
senderConversationModel,
expireUpdate
);
}
// TODO legacy messages support will be removed in a future release
if (
expireUpdate?.isDisappearingMessagesV2Released &&
expireUpdate?.isLegacyConversationSettingMessage
) {
if (expireUpdate.isLegacyConversationSettingMessage) {
window.log.info('WIP: The legacy message is an expiration timer update. Ignoring it.');
return;
}
}
perfStart(`handleSwarmDataMessage-${envelope.id}`);
await handleSwarmDataMessage(

Loading…
Cancel
Save