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

Move new search experience to a Beta #7718

Merged
merged 24 commits into from
Feb 8, 2022
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
tweak toast behaviour
t3chguy committed Feb 7, 2022
commit 015809aebeea7961d53c4ee279790ec148037b7d
6 changes: 5 additions & 1 deletion src/components/structures/MatrixChat.tsx
Original file line number Diff line number Diff line change
@@ -1554,7 +1554,11 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {

if (!localStorage.getItem("mx_seen_feature_spotlight_toast")) {
setTimeout(() => {
if (SettingsStore.getValue("feature_spotlight", null, true) !== null) return;
// Skip the toast if the beta is already enabled or the user has changed the setting from default
if (SettingsStore.getValue("feature_spotlight") ||
SettingsStore.getValue("feature_spotlight", null, true) !== null) {
return;
}

const key = "BETA_SPOTLIGHT_TOAST";
ToastStore.sharedInstance().addOrReplaceToast({