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

Commit

Permalink
Remove experimental threads disclaimer (#8445)
Browse files Browse the repository at this point in the history
  • Loading branch information
Germain committed May 6, 2022
1 parent 2e3185a commit 8080c2c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 36 deletions.
31 changes: 0 additions & 31 deletions src/components/structures/MatrixChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ import { DoAfterSyncPreparedPayload } from '../../dispatcher/payloads/DoAfterSyn
import { ViewStartChatOrReusePayload } from '../../dispatcher/payloads/ViewStartChatOrReusePayload';
import { IConfigOptions } from "../../IConfigOptions";
import { SnakedObject } from "../../utils/SnakedObject";
import InfoDialog from '../views/dialogs/InfoDialog';
import { leaveRoomBehaviour } from "../../utils/leave-behaviour";
import VideoChannelStore from "../../stores/VideoChannelStore";

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

if (!localStorage.getItem("mx_seen_feature_thread_experimental")) {
setTimeout(() => {
if (SettingsStore.getValue("feature_thread") && SdkConfig.get("show_labs_settings")) {
Modal.createDialog(InfoDialog, {
title: _t("Threads Approaching Beta 🎉"),
description: <>
<p>
{ _t("We're getting closer to releasing a public Beta for Threads.") }
</p>
<p>
{ _t("As we prepare for it, we need to make some changes: threads created "
+ "before this point will be <strong>displayed as regular replies</strong>.",
{}, {
"strong": sub => <strong>{ sub }</strong>,
}) }
</p>
<p>
{ _t("This will be a one-off transition, as threads are now part "
+ "of the Matrix specification.") }
</p>
</>,
button: _t("Got it"),
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
Expand Down
4 changes: 0 additions & 4 deletions src/i18n/strings/en_EN.json
Original file line number Diff line number Diff line change
Expand Up @@ -3050,10 +3050,6 @@
"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 Approaching Beta 🎉": "Threads Approaching Beta 🎉",
"We're getting closer to releasing a public Beta for Threads.": "We're getting closer to releasing a public Beta for Threads.",
"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>.",
"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.",
"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",
Expand Down
1 change: 0 additions & 1 deletion test/end-to-end-tests/src/usecases/threads.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { ElementSession } from "../session";
export async function enableThreads(session: ElementSession): Promise<void> {
session.log.step(`enables threads`);
await session.page.evaluate(() => {
window.localStorage.setItem("mx_seen_feature_thread_experimental", "1"); // inhibit dialog
window["mxSettingsStore"].setValue("feature_thread", null, "device", true);
});
session.log.done();
Expand Down

0 comments on commit 8080c2c

Please sign in to comment.