2022-03-24 15:17:42 +03:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Reply getNestedReplyText Returns valid reply fallback text for m.text msgtypes 1`] = `
2022-11-04 13:48:08 +03:00
{
2022-03-24 15:17:42 +03:00
"body": "> <@user1:server> body
",
2022-11-04 13:48:08 +03:00
"html": "<mx-reply><blockquote><a href="$$permalink$$">In reply to</a> <a href="https://matrix.to/#/@user1:server">@user1:server</a><br>body</blockquote></mx-reply>",
2022-03-24 15:17:42 +03:00
}
`;
2022-07-01 09:01:22 +03:00
exports[`Reply getNestedReplyText should create the expected fallback text for m.pin m.room.message/m.location 1`] = `
2022-11-04 13:48:08 +03:00
{
2022-07-01 09:01:22 +03:00
"body": "> <@user1:server> shared a location.
",
2022-11-04 13:48:08 +03:00
"html": "<mx-reply><blockquote><a href="$$permalink$$">In reply to</a> <a href="https://matrix.to/#/@user1:server">@user1:server</a><br>shared a location.</blockquote></mx-reply>",
2022-07-01 09:01:22 +03:00
}
`;
exports[`Reply getNestedReplyText should create the expected fallback text for m.pin org.matrix.msc3672.beacon_info/undefined 1`] = `
2022-11-04 13:48:08 +03:00
{
2022-07-01 09:01:22 +03:00
"body": "> <@user1:server> shared a live location.
",
2022-11-04 13:48:08 +03:00
"html": "<mx-reply><blockquote><a href="$$permalink$$">In reply to</a> <a href="https://matrix.to/#/@user1:server">@user1:server</a><br>shared a live location.</blockquote></mx-reply>",
2022-07-01 09:01:22 +03:00
}
`;
exports[`Reply getNestedReplyText should create the expected fallback text for m.self m.room.message/m.location 1`] = `
2022-11-04 13:48:08 +03:00
{
2022-07-01 09:01:22 +03:00
"body": "> <@user1:server> shared their location.
",
2022-11-04 13:48:08 +03:00
"html": "<mx-reply><blockquote><a href="$$permalink$$">In reply to</a> <a href="https://matrix.to/#/@user1:server">@user1:server</a><br>shared their location.</blockquote></mx-reply>",
2022-07-01 09:01:22 +03:00
}
`;
exports[`Reply getNestedReplyText should create the expected fallback text for m.self org.matrix.msc3672.beacon_info/undefined 1`] = `
2022-11-04 13:48:08 +03:00
{
2022-07-01 09:01:22 +03:00
"body": "> <@user1:server> shared their live location.
",
2022-11-04 13:48:08 +03:00
"html": "<mx-reply><blockquote><a href="$$permalink$$">In reply to</a> <a href="https://matrix.to/#/@user1:server">@user1:server</a><br>shared their live location.</blockquote></mx-reply>",
2022-07-01 09:01:22 +03:00
}
`;
2023-02-14 01:34:47 +03:00
exports[`Reply getNestedReplyText should create the expected fallback text for poll end events 1`] = `
{
"body": "> <@user1:server>Ended poll
",
"html": "<mx-reply><blockquote><a href="$$permalink$$">In reply to</a> <a href="https://matrix.to/#/@user1:server">@user1:server</a><br>Ended poll</blockquote></mx-reply>",
}
`;