diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 5ab1060268..a3c25ac625 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -7259,16 +7259,22 @@ "messageformat": "Small tweaks, bug fixes, and performance enhancements. Thanks for using Signal!", "description": "Release notes for releases that only include bug fixes" }, - "icu:WhatsNew__v6.47--0": { - "messageformat": "If you spend a lot of time trying to pick out the perfect emoji reaction for every situation, you'll be ๐ŸŽ‰ to know that we fixed a bug with typing indicators that sometimes caused the emoji selection box to disappear while you were in the middle of pondering your choices." - }, - "icu:WhatsNew__v6.47--1": { - "messageformat": "Signal will now match your selected title bar color on Microsoft Windows. When all of your windows in Windows look the same, that's a common theme." - }, "icu:WhatsNew__v6.48--0": { "messageformat": "Video and audio playback will now pause whenever the Signal window is closed and minimized in the system tray. If youโ€™re looking for silence, X marks the spot." }, "icu:WhatsNew__v6.48--1": { "messageformat": "By popular demand, emoticons like โ€œ:-)โ€ now automatically become emoji like โ€œ๐Ÿ™‚โ€ โ€” but if this makes you โ€œ:-(โ€œ you can disable this feature in the โ€œChatsโ€ section of your Signal Desktop settings." + }, + "icu:WhatsNew__v7.0--header": { + "messageformat": "We're introducing new ways to keep your phone number private on Signal." + }, + "icu:WhatsNew__v7.0--0": { + "messageformat": "Your phone number will no longer be visible to anyone on the latest version of Signal unless they have it saved in their phoneโ€™s contacts. You can change this in Settings." + }, + "icu:WhatsNew__v7.0--1": { + "messageformat": "You can now set and share an optional username to let people chat with you without giving them your phone number." + }, + "icu:WhatsNew__v7.0--2": { + "messageformat": "A new privacy setting lets you control who can find you by your phone number on Signal." } } diff --git a/ts/components/WhatsNewModal.tsx b/ts/components/WhatsNewModal.tsx index cf5c2b9516..73c388b462 100644 --- a/ts/components/WhatsNewModal.tsx +++ b/ts/components/WhatsNewModal.tsx @@ -17,6 +17,7 @@ export type PropsType = { type ReleaseNotesType = { date: Date; version: string; + header?: JSX.Element; features: Array; }; @@ -41,21 +42,26 @@ export function WhatsNewModal({ const releaseNotes: ReleaseNotesType = { date: new Date(window.getBuildCreation?.() || Date.now()), version: window.getVersion?.(), + header: , features: [ - , - , + , + , + , ], }; - if (releaseNotes.features.length === 1) { + if (releaseNotes.features.length === 1 && !releaseNotes.header) { contentNode =

{releaseNotes.features[0]}

; } else { contentNode = ( -
    - {releaseNotes.features.map(element => { - return
  • {element}
  • ; - })} -
+ <> + {releaseNotes.header ?

{releaseNotes.header}

: null} +
    + {releaseNotes.features.map(element => { + return
  • {element}
  • ; + })} +
+ ); }