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); 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) {
// TODO legacy messages support will be removed in a future release
if (
expireUpdate?.isDisappearingMessagesV2Released &&
expireUpdate?.isLegacyConversationSettingMessage
) {
window.log.info('WIP: The legacy message is an expiration timer update. Ignoring it.'); window.log.info('WIP: The legacy message is an expiration timer update. Ignoring it.');
return; return;
} }
}
perfStart(`handleSwarmDataMessage-${envelope.id}`); perfStart(`handleSwarmDataMessage-${envelope.id}`);
await handleSwarmDataMessage( await handleSwarmDataMessage(

Loading…
Cancel
Save