diff --git a/src/components/structures/MatrixChat.tsx b/src/components/structures/MatrixChat.tsx index 426920f098..feb9af7b00 100644 --- a/src/components/structures/MatrixChat.tsx +++ b/src/components/structures/MatrixChat.tsx @@ -131,6 +131,7 @@ import { ViewHomePagePayload } from '../../dispatcher/payloads/ViewHomePagePaylo import { AfterLeaveRoomPayload } from '../../dispatcher/payloads/AfterLeaveRoomPayload'; import { DoAfterSyncPreparedPayload } from '../../dispatcher/payloads/DoAfterSyncPreparedPayload'; import { ViewStartChatOrReusePayload } from '../../dispatcher/payloads/ViewStartChatOrReusePayload'; +import InfoDialog from '../views/dialogs/InfoDialog'; // legacy export export { default as Views } from "../../Views"; @@ -1460,6 +1461,36 @@ export default class MatrixChat extends React.PureComponent { showNotificationsToast(false); } + if (!localStorage.getItem("mx_seen_feature_thread_experimental")) { + setTimeout(() => { + if (SettingsStore.getValue("feature_thread") && SdkConfig.get()['showLabsSettings']) { + Modal.createDialog(InfoDialog, { + title: _t("Threads are no longer experimental! 🎉"), + description: <> +

+ { _t("We’ve recently introduced key stability " + + "improvements for Threads, which also means " + + "phasing out support for experimental Threads.") } +

+

+ { _t("All thread events created during the " + + "experimental period will now be rendered in " + + "the room timeline and displayed as replies. " + + "This is a one-off transition. Threads are now " + + "part of the Matrix specification.") } +

+

+ { _t("Thank you for helping us testing Threads!") } +

+ , + onFinished: () => { + localStorage.setItem("mx_seen_feature_thread_experimental", "true"); + }, + }); + } + }, 1 * 60 * 1000); // show after 1 minute to not overload user on launch + } + if (!localStorage.getItem("mx_seen_feature_spotlight_toast")) { setTimeout(() => { // Skip the toast if the beta is already enabled or the user has changed the setting from default diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 5df8b5d34d..26b1a012b3 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -3089,6 +3089,10 @@ "Failed to forget room %(errCode)s": "Failed to forget room %(errCode)s", "Unable to copy room link": "Unable to copy room link", "Unable to copy a link to the room to the clipboard.": "Unable to copy a link to the room to the clipboard.", + "Threads are no longer experimental! 🎉": "Threads are no longer experimental! 🎉", + "We’ve recently introduced key stability improvements for Threads, which also means phasing out support for experimental Threads.": "We’ve recently introduced key stability improvements for Threads, which also means phasing out support for experimental Threads.", + "All thread events created during the experimental period will now be rendered in the room timeline and displayed as replies. This is a one-off transition. Threads are now part of the Matrix specification.": "All thread events created during the experimental period will now be rendered in the room timeline and displayed as replies. This is a one-off transition. Threads are now part of the Matrix specification.", + "Thank you for helping us testing Threads!": "Thank you for helping us testing Threads!", "New search beta available": "New search beta available", "We're testing a new search to make finding what you want quicker.\n": "We're testing a new search to make finding what you want quicker.\n", "Signed Out": "Signed Out",