You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +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:
@ -169,6 +169,7 @@ describe("TimelinePanel", () => {
|
||||
const getValueCopy = SettingsStore.getValue;
|
||||
SettingsStore.getValue = jest.fn().mockImplementation((name: string) => {
|
||||
if (name === "sendReadReceipts") return true;
|
||||
if (name === "feature_threadstable") return false;
|
||||
return getValueCopy(name);
|
||||
});
|
||||
|
||||
@ -182,6 +183,7 @@ describe("TimelinePanel", () => {
|
||||
const getValueCopy = SettingsStore.getValue;
|
||||
SettingsStore.getValue = jest.fn().mockImplementation((name: string) => {
|
||||
if (name === "sendReadReceipts") return false;
|
||||
if (name === "feature_threadstable") return false;
|
||||
return getValueCopy(name);
|
||||
});
|
||||
|
||||
@ -358,7 +360,7 @@ describe("TimelinePanel", () => {
|
||||
client.supportsExperimentalThreads = () => true;
|
||||
const getValueCopy = SettingsStore.getValue;
|
||||
SettingsStore.getValue = jest.fn().mockImplementation((name: string) => {
|
||||
if (name === "feature_thread") return true;
|
||||
if (name === "feature_threadstable") return true;
|
||||
return getValueCopy(name);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user