1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-04 05:02:41 +03:00

Update threads handling for replies-to-thread-responses as per MSC update (#2305)

* Update threads handling for replies-to-thread-responses as per MSC update

* Update tests to match new behaviour
This commit is contained in:
Michael Telatynski
2022-04-19 17:15:06 +01:00
committed by GitHub
parent db58a66e19
commit 540514c805
3 changed files with 17 additions and 31 deletions

View File

@@ -797,7 +797,7 @@ describe("MatrixClient", function() {
]);
});
it("sends reply to thread responses to thread timeline only", () => {
it("sends reply to thread responses to main timeline only", () => {
client.clientOpts = { experimentalThreadSupport: true };
const threadRootEvent = buildEventPollStartThreadRoot();
@@ -814,12 +814,12 @@ describe("MatrixClient", function() {
expect(timeline).toEqual([
threadRootEvent,
replyToThreadResponse,
]);
expect(threaded).toEqual([
threadRootEvent,
eventMessageInThread,
replyToThreadResponse,
]);
});
});