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

Commit 8080c2c

Browse files
author
Germain
authored
Remove experimental threads disclaimer (#8445)
1 parent 2e3185a commit 8080c2c

File tree

3 files changed

+0
-36
lines changed

3 files changed

+0
-36
lines changed

src/components/structures/MatrixChat.tsx

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ import { DoAfterSyncPreparedPayload } from '../../dispatcher/payloads/DoAfterSyn
129129
import { ViewStartChatOrReusePayload } from '../../dispatcher/payloads/ViewStartChatOrReusePayload';
130130
import { IConfigOptions } from "../../IConfigOptions";
131131
import { SnakedObject } from "../../utils/SnakedObject";
132-
import InfoDialog from '../views/dialogs/InfoDialog';
133132
import { leaveRoomBehaviour } from "../../utils/leave-behaviour";
134133
import VideoChannelStore from "../../stores/VideoChannelStore";
135134

@@ -1412,36 +1411,6 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
14121411
showNotificationsToast(false);
14131412
}
14141413

1415-
if (!localStorage.getItem("mx_seen_feature_thread_experimental")) {
1416-
setTimeout(() => {
1417-
if (SettingsStore.getValue("feature_thread") && SdkConfig.get("show_labs_settings")) {
1418-
Modal.createDialog(InfoDialog, {
1419-
title: _t("Threads Approaching Beta 🎉"),
1420-
description: <>
1421-
<p>
1422-
{ _t("We're getting closer to releasing a public Beta for Threads.") }
1423-
</p>
1424-
<p>
1425-
{ _t("As we prepare for it, we need to make some changes: threads created "
1426-
+ "before this point will be <strong>displayed as regular replies</strong>.",
1427-
{}, {
1428-
"strong": sub => <strong>{ sub }</strong>,
1429-
}) }
1430-
</p>
1431-
<p>
1432-
{ _t("This will be a one-off transition, as threads are now part "
1433-
+ "of the Matrix specification.") }
1434-
</p>
1435-
</>,
1436-
button: _t("Got it"),
1437-
onFinished: () => {
1438-
localStorage.setItem("mx_seen_feature_thread_experimental", "true");
1439-
},
1440-
});
1441-
}
1442-
}, 1 * 60 * 1000); // show after 1 minute to not overload user on launch
1443-
}
1444-
14451414
if (!localStorage.getItem("mx_seen_feature_spotlight_toast")) {
14461415
setTimeout(() => {
14471416
// 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: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3050,10 +3050,6 @@
30503050
"Failed to forget room %(errCode)s": "Failed to forget room %(errCode)s",
30513051
"Unable to copy room link": "Unable to copy room link",
30523052
"Unable to copy a link to the room to the clipboard.": "Unable to copy a link to the room to the clipboard.",
3053-
"Threads Approaching Beta 🎉": "Threads Approaching Beta 🎉",
3054-
"We're getting closer to releasing a public Beta for Threads.": "We're getting closer to releasing a public Beta for Threads.",
3055-
"As we prepare for it, we need to make some changes: threads created before this point will be <strong>displayed as regular replies</strong>.": "As we prepare for it, we need to make some changes: threads created before this point will be <strong>displayed as regular replies</strong>.",
3056-
"This will be a one-off transition, as threads are now part of the Matrix specification.": "This will be a one-off transition, as threads are now part of the Matrix specification.",
30573053
"New search beta available": "New search beta available",
30583054
"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",
30593055
"Signed Out": "Signed Out",

test/end-to-end-tests/src/usecases/threads.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { ElementSession } from "../session";
2121
export async function enableThreads(session: ElementSession): Promise<void> {
2222
session.log.step(`enables threads`);
2323
await session.page.evaluate(() => {
24-
window.localStorage.setItem("mx_seen_feature_thread_experimental", "1"); // inhibit dialog
2524
window["mxSettingsStore"].setValue("feature_thread", null, "device", true);
2625
});
2726
session.log.done();

0 commit comments

Comments
 (0)