[Release] Switch threads on for everyone (#9890)
Co-authored-by: Andy Balaam <andy.balaam@matrix.org>
This commit is contained in:
@@ -174,7 +174,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;
|
||||
if (name === "feature_threadenabled") return false;
|
||||
return getValueCopy(name);
|
||||
});
|
||||
|
||||
@@ -188,7 +188,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;
|
||||
if (name === "feature_threadenabled") return false;
|
||||
return getValueCopy(name);
|
||||
});
|
||||
|
||||
@@ -365,7 +365,7 @@ describe("TimelinePanel", () => {
|
||||
client.supportsExperimentalThreads = () => true;
|
||||
const getValueCopy = SettingsStore.getValue;
|
||||
SettingsStore.getValue = jest.fn().mockImplementation((name: string) => {
|
||||
if (name === "feature_threadstable") return true;
|
||||
if (name === "feature_threadenabled") return true;
|
||||
return getValueCopy(name);
|
||||
});
|
||||
|
||||
@@ -520,7 +520,7 @@ describe("TimelinePanel", () => {
|
||||
});
|
||||
|
||||
it("renders when the last message is an undecryptable thread root", async () => {
|
||||
jest.spyOn(SettingsStore, "getValue").mockImplementation((name) => name === "feature_threadstable");
|
||||
jest.spyOn(SettingsStore, "getValue").mockImplementation((name) => name === "feature_threadenabled");
|
||||
|
||||
const client = MatrixClientPeg.get();
|
||||
client.isRoomEncrypted = () => true;
|
||||
|
||||
Reference in New Issue
Block a user