Update to supportsThreads (#9907)
This commit is contained in:
parent
a21929dba0
commit
3e2bf5640e
15 changed files with 16 additions and 20 deletions
|
@ -38,7 +38,7 @@ describe("RoomHeaderButtons-test.tsx", function () {
|
|||
|
||||
stubClient();
|
||||
client = MatrixClientPeg.get();
|
||||
client.supportsExperimentalThreads = () => true;
|
||||
client.supportsThreads = () => true;
|
||||
room = new Room(ROOM_ID, client, client.getUserId() ?? "", {
|
||||
pendingEventOrdering: PendingEventOrdering.Detached,
|
||||
});
|
||||
|
|
|
@ -92,7 +92,7 @@ describe("EventTile", () => {
|
|||
|
||||
describe("EventTile thread summary", () => {
|
||||
beforeEach(() => {
|
||||
jest.spyOn(client, "supportsExperimentalThreads").mockReturnValue(true);
|
||||
jest.spyOn(client, "supportsThreads").mockReturnValue(true);
|
||||
});
|
||||
|
||||
it("removes the thread summary when thread is deleted", async () => {
|
||||
|
|
|
@ -48,7 +48,7 @@ describe("UnreadNotificationBadge", () => {
|
|||
}
|
||||
|
||||
beforeAll(() => {
|
||||
client.supportsExperimentalThreads = () => true;
|
||||
client.supportsThreads = () => true;
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
|
|
|
@ -225,7 +225,7 @@ describe("<Notifications />", () => {
|
|||
}),
|
||||
setAccountData: jest.fn(),
|
||||
sendReadReceipt: jest.fn(),
|
||||
supportsExperimentalThreads: jest.fn().mockReturnValue(true),
|
||||
supportsThreads: jest.fn().mockReturnValue(true),
|
||||
});
|
||||
mockClient.getPushRules.mockResolvedValue(pushRules);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue