Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 5fdfb11

Browse files
author
Kerry Archibald
committed
Merge branch 'develop' into psf-662/live-share-banner
2 parents 3a6530d + 59584cd commit 5fdfb11

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

src/components/structures/MatrixChat.tsx

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ import { ViewHomePagePayload } from '../../dispatcher/payloads/ViewHomePagePaylo
131131
import { AfterLeaveRoomPayload } from '../../dispatcher/payloads/AfterLeaveRoomPayload';
132132
import { DoAfterSyncPreparedPayload } from '../../dispatcher/payloads/DoAfterSyncPreparedPayload';
133133
import { ViewStartChatOrReusePayload } from '../../dispatcher/payloads/ViewStartChatOrReusePayload';
134+
import InfoDialog from '../views/dialogs/InfoDialog';
134135

135136
// legacy export
136137
export { default as Views } from "../../Views";
@@ -1460,6 +1461,36 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
14601461
showNotificationsToast(false);
14611462
}
14621463

1464+
if (!localStorage.getItem("mx_seen_feature_thread_experimental")) {
1465+
setTimeout(() => {
1466+
if (SettingsStore.getValue("feature_thread") && SdkConfig.get()['showLabsSettings']) {
1467+
Modal.createDialog(InfoDialog, {
1468+
title: _t("Threads are no longer experimental! 🎉"),
1469+
description: <>
1470+
<p>
1471+
{ _t("We’ve recently introduced key stability "
1472+
+ "improvements for Threads, which also means "
1473+
+ "phasing out support for experimental Threads.") }
1474+
</p>
1475+
<p>
1476+
{ _t("All thread events created during the "
1477+
+ "experimental period will now be rendered in "
1478+
+ "the room timeline and displayed as replies. "
1479+
+ "This is a one-off transition. Threads are now "
1480+
+ "part of the Matrix specification.") }
1481+
</p>
1482+
<p>
1483+
{ _t("Thank you for helping us testing Threads!") }
1484+
</p>
1485+
</>,
1486+
onFinished: () => {
1487+
localStorage.setItem("mx_seen_feature_thread_experimental", "true");
1488+
},
1489+
});
1490+
}
1491+
}, 1 * 60 * 1000); // show after 1 minute to not overload user on launch
1492+
}
1493+
14631494
if (!localStorage.getItem("mx_seen_feature_spotlight_toast")) {
14641495
setTimeout(() => {
14651496
// Skip the toast if the beta is already enabled or the user has changed the setting from default

src/i18n/strings/en_EN.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3090,6 +3090,10 @@
30903090
"Failed to forget room %(errCode)s": "Failed to forget room %(errCode)s",
30913091
"Unable to copy room link": "Unable to copy room link",
30923092
"Unable to copy a link to the room to the clipboard.": "Unable to copy a link to the room to the clipboard.",
3093+
"Threads are no longer experimental! 🎉": "Threads are no longer experimental! 🎉",
3094+
"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.",
3095+
"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.",
3096+
"Thank you for helping us testing Threads!": "Thank you for helping us testing Threads!",
30933097
"New search beta available": "New search beta available",
30943098
"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",
30953099
"Signed Out": "Signed Out",

0 commit comments

Comments
 (0)