[Release] Switch threads on for everyone (#9890)
Co-authored-by: Andy Balaam <andy.balaam@matrix.org>
This commit is contained in:
parent
f38b5f62e5
commit
f4ad9b29ac
25 changed files with 38 additions and 38 deletions
|
@ -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;
|
||||
|
|
|
@ -389,7 +389,7 @@ describe("<MessageActionBar />", () => {
|
|||
describe("when threads feature is not enabled", () => {
|
||||
beforeEach(() => {
|
||||
jest.spyOn(SettingsStore, "getValue").mockImplementation(
|
||||
(setting) => setting !== "feature_threadstable",
|
||||
(setting) => setting !== "feature_threadenabled",
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -435,7 +435,7 @@ describe("<MessageActionBar />", () => {
|
|||
describe("when threads feature is enabled", () => {
|
||||
beforeEach(() => {
|
||||
jest.spyOn(SettingsStore, "getValue").mockImplementation(
|
||||
(setting) => setting === "feature_threadstable",
|
||||
(setting) => setting === "feature_threadenabled",
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ describe("RoomHeaderButtons-test.tsx", function () {
|
|||
});
|
||||
|
||||
jest.spyOn(SettingsStore, "getValue").mockImplementation((name: string) => {
|
||||
if (name === "feature_threadstable") return true;
|
||||
if (name === "feature_threadenabled") return true;
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ describe("EventTile", () => {
|
|||
|
||||
jest.spyOn(client, "getRoom").mockReturnValue(room);
|
||||
jest.spyOn(client, "decryptEventIfNeeded").mockResolvedValue();
|
||||
jest.spyOn(SettingsStore, "getValue").mockImplementation((name) => name === "feature_threadstable");
|
||||
jest.spyOn(SettingsStore, "getValue").mockImplementation((name) => name === "feature_threadenabled");
|
||||
|
||||
mxEvent = mkMessage({
|
||||
room: room.roomId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue