Update to supportsThreads (#9907)
This commit is contained in:
parent
a21929dba0
commit
3e2bf5640e
15 changed files with 16 additions and 20 deletions
|
@ -362,7 +362,7 @@ describe("TimelinePanel", () => {
|
|||
client = MatrixClientPeg.get();
|
||||
|
||||
Thread.hasServerSideSupport = FeatureSupport.Stable;
|
||||
client.supportsExperimentalThreads = () => true;
|
||||
client.supportsThreads = () => true;
|
||||
const getValueCopy = SettingsStore.getValue;
|
||||
SettingsStore.getValue = jest.fn().mockImplementation((name: string) => {
|
||||
if (name === "feature_threadenabled") return true;
|
||||
|
@ -524,7 +524,7 @@ describe("TimelinePanel", () => {
|
|||
|
||||
const client = MatrixClientPeg.get();
|
||||
client.isRoomEncrypted = () => true;
|
||||
client.supportsExperimentalThreads = () => true;
|
||||
client.supportsThreads = () => true;
|
||||
client.decryptEventIfNeeded = () => Promise.resolve();
|
||||
const authorId = client.getUserId()!;
|
||||
const room = new Room("roomId", client, authorId, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue