Threads experimental transition modal (#8065)
This commit is contained in:
parent
bb6ae3fdbc
commit
59584cdc3e
2 changed files with 35 additions and 0 deletions
|
@ -131,6 +131,7 @@ import { ViewHomePagePayload } from '../../dispatcher/payloads/ViewHomePagePaylo
|
||||||
import { AfterLeaveRoomPayload } from '../../dispatcher/payloads/AfterLeaveRoomPayload';
|
import { AfterLeaveRoomPayload } from '../../dispatcher/payloads/AfterLeaveRoomPayload';
|
||||||
import { DoAfterSyncPreparedPayload } from '../../dispatcher/payloads/DoAfterSyncPreparedPayload';
|
import { DoAfterSyncPreparedPayload } from '../../dispatcher/payloads/DoAfterSyncPreparedPayload';
|
||||||
import { ViewStartChatOrReusePayload } from '../../dispatcher/payloads/ViewStartChatOrReusePayload';
|
import { ViewStartChatOrReusePayload } from '../../dispatcher/payloads/ViewStartChatOrReusePayload';
|
||||||
|
import InfoDialog from '../views/dialogs/InfoDialog';
|
||||||
|
|
||||||
// legacy export
|
// legacy export
|
||||||
export { default as Views } from "../../Views";
|
export { default as Views } from "../../Views";
|
||||||
|
@ -1460,6 +1461,36 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
|
||||||
showNotificationsToast(false);
|
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: <>
|
||||||
|
<p>
|
||||||
|
{ _t("We’ve recently introduced key stability "
|
||||||
|
+ "improvements for Threads, which also means "
|
||||||
|
+ "phasing out support for experimental Threads.") }
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
{ _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.") }
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
{ _t("Thank you for helping us testing Threads!") }
|
||||||
|
</p>
|
||||||
|
</>,
|
||||||
|
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")) {
|
if (!localStorage.getItem("mx_seen_feature_spotlight_toast")) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
// Skip the toast if the beta is already enabled or the user has changed the setting from default
|
// Skip the toast if the beta is already enabled or the user has changed the setting from default
|
||||||
|
|
|
@ -3089,6 +3089,10 @@
|
||||||
"Failed to forget room %(errCode)s": "Failed to forget room %(errCode)s",
|
"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 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.",
|
"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",
|
"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",
|
"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",
|
"Signed Out": "Signed Out",
|
||||||
|
|
Loading…
Reference in a new issue