You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-07-30 04:23:07 +03:00
Remove extensible events v1 field population on legacy events (#3040)
* Remove extensible events v1 field population on legacy events With extensible events v2, affected events are now gated by a room version, so we don't need this code anymore. The proposal has generally moved away from mixing m.room.message with extensible fields as well. * Run prettier * Remove unstable identifier from tests too * Run prettier again
This commit is contained in:
@ -1177,11 +1177,10 @@ describe("MatrixClient", function () {
|
||||
.when("PUT", "/send")
|
||||
.check((req) => {
|
||||
expect(req.data).toStrictEqual({
|
||||
"msgtype": "m.emote",
|
||||
"body": "Body",
|
||||
"formatted_body": "<h1>Body</h1>",
|
||||
"format": "org.matrix.custom.html",
|
||||
"org.matrix.msc1767.message": expect.anything(),
|
||||
msgtype: "m.emote",
|
||||
body: "Body",
|
||||
formatted_body: "<h1>Body</h1>",
|
||||
format: "org.matrix.custom.html",
|
||||
});
|
||||
})
|
||||
.respond(200, { event_id: "$foobar" });
|
||||
@ -1197,11 +1196,10 @@ describe("MatrixClient", function () {
|
||||
.when("PUT", "/send")
|
||||
.check((req) => {
|
||||
expect(req.data).toStrictEqual({
|
||||
"msgtype": "m.text",
|
||||
"body": "Body",
|
||||
"formatted_body": "<h1>Body</h1>",
|
||||
"format": "org.matrix.custom.html",
|
||||
"org.matrix.msc1767.message": expect.anything(),
|
||||
msgtype: "m.text",
|
||||
body: "Body",
|
||||
formatted_body: "<h1>Body</h1>",
|
||||
format: "org.matrix.custom.html",
|
||||
});
|
||||
})
|
||||
.respond(200, { event_id: "$foobar" });
|
||||
|
Reference in New Issue
Block a user