You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-07 21:23:00 +03:00
🧵 Enable threads by default (#9736)
* Delabs threads * remove threads reload when labs is toggled * Fix ts strict * fix rebase mistake * remove .only * fix pr comments * re-introduce backwards compat * Fix export test * Fix SearchREsultTile test * strict ts
This commit is contained in:
@@ -386,6 +386,12 @@ describe("<MessageActionBar />", () => {
|
||||
});
|
||||
|
||||
describe("when threads feature is not enabled", () => {
|
||||
beforeEach(() => {
|
||||
jest.spyOn(SettingsStore, "getValue").mockImplementation(
|
||||
(setting) => setting !== "feature_threadstable",
|
||||
);
|
||||
});
|
||||
|
||||
it("does not render thread button when threads does not have server support", () => {
|
||||
jest.spyOn(SettingsStore, "getValue").mockReturnValue(false);
|
||||
Thread.setServerSideSupport(FeatureSupport.None);
|
||||
@@ -416,7 +422,9 @@ describe("<MessageActionBar />", () => {
|
||||
|
||||
describe("when threads feature is enabled", () => {
|
||||
beforeEach(() => {
|
||||
jest.spyOn(SettingsStore, "getValue").mockImplementation((setting) => setting === "feature_thread");
|
||||
jest.spyOn(SettingsStore, "getValue").mockImplementation(
|
||||
(setting) => setting === "feature_threadstable",
|
||||
);
|
||||
});
|
||||
|
||||
it("renders thread button on own actionable event", () => {
|
||||
|
Reference in New Issue
Block a user