feat: only show banner after v2 is released

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

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

Loading…
Cancel
Save