diff --git a/src/d2m/converters/message-to-event.js b/src/d2m/converters/message-to-event.js
index 6e9ce7b..643c84d 100644
--- a/src/d2m/converters/message-to-event.js
+++ b/src/d2m/converters/message-to-event.js
@@ -640,8 +640,8 @@ async function messageToEvent(message, guild, options = {}, di) {
const flags = message.flags || 0
if (flags & DiscordTypes.MessageFlags.IsCrosspost) {
- body = `[๐ ${message.author.username}]\n` + body
- html = `๐ ${message.author.username}
` + html
+ body = `[โท ${message.author.username}]\n` + body
+ html = `โท ${message.author.username}
` + html
}
// Fallback body/formatted_body for replies
@@ -768,20 +768,20 @@ async function messageToEvent(message, guild, options = {}, di) {
if (row && "event_id" in row) {
const via = await getViaServersMemo(row.room_id)
forwardedNotice.addLine(
- `[๐ Forwarded from #${roomName}]`,
- tag`๐ Forwarded from ${roomName} [jump to event]`
+ `[โท Forwarded from #${roomName}]`,
+ tag`โท Forwarded from ${roomName} [jump to event]`
)
} else {
const via = await getViaServersMemo(room.room_id)
forwardedNotice.addLine(
- `[๐ Forwarded from #${roomName}]`,
- tag`๐ Forwarded from ${roomName} [jump to room]`
+ `[โท Forwarded from #${roomName}]`,
+ tag`โท Forwarded from ${roomName} [jump to room]`
)
}
} else {
forwardedNotice.addLine(
- `[๐ Forwarded message]`,
- tag`๐ Forwarded message`
+ `[โท Forwarded message]`,
+ tag`โท Forwarded message`
)
}
diff --git a/src/d2m/converters/message-to-event.test.embeds.js b/src/d2m/converters/message-to-event.test.embeds.js
index fdb0807..b193931 100644
--- a/src/d2m/converters/message-to-event.test.embeds.js
+++ b/src/d2m/converters/message-to-event.test.embeds.js
@@ -209,9 +209,9 @@ test("message2event embeds: 4 images", async t => {
t.deepEqual(events, [{
$type: "m.room.message",
msgtype: "m.text",
- body: "[๐ Forwarded message]\nยป https://fixupx.com/i/status/2032003668787020046",
+ body: "[โท Forwarded message]\nยป https://fixupx.com/i/status/2032003668787020046",
format: "org.matrix.custom.html",
- formatted_body: "๐ Forwarded message
https://fixupx.com/i/status/2032003668787020046", + formatted_body: "โท Forwarded message
https://fixupx.com/i/status/2032003668787020046", "m.mentions": {} }, { $type: "m.room.message", diff --git a/src/d2m/converters/message-to-event.test.js b/src/d2m/converters/message-to-event.test.js index b7f0867..be1d99f 100644 --- a/src/d2m/converters/message-to-event.test.js +++ b/src/d2m/converters/message-to-event.test.js @@ -1273,9 +1273,9 @@ test("message2event: crossposted announcements say where they are crossposted fr $type: "m.room.message", "m.mentions": {}, msgtype: "m.text", - body: "[๐ Chewey Bot Official Server #announcements]\nAll text based commands are now inactive on Chewey Bot\nTo continue using commands you'll need to use them as slash commands", + body: "[โท Chewey Bot Official Server #announcements]\nAll text based commands are now inactive on Chewey Bot\nTo continue using commands you'll need to use them as slash commands", format: "org.matrix.custom.html", - formatted_body: "๐ Chewey Bot Official Server #announcements
What's cooking, good looking?`, "m.mentions": {}, msgtype: "m.text", @@ -1444,10 +1444,10 @@ test("message2event: constructed forwarded text", async t => { t.deepEqual(events, [ { $type: "m.room.message", - body: "[๐ Forwarded from #amanda-spam]" + body: "[โท Forwarded from #amanda-spam]" + "\nยป What's cooking, good looking?", format: "org.matrix.custom.html", - formatted_body: `๐ Forwarded from amanda-spam [jump to room]` + formatted_body: `โท Forwarded from amanda-spam [jump to room]` + `
What's cooking, good looking?`, "m.mentions": {}, msgtype: "m.text", @@ -1467,10 +1467,10 @@ test("message2event: don't scan forwarded messages for mentions", async t => { t.deepEqual(events, [ { $type: "m.room.message", - body: "[๐ Forwarded message]" + body: "[โท Forwarded message]" + "\nยป If some folks have spare bandwidth then helping out ArchiveTeam with archiving soon to be deleted research and government data might be worthwhile https://social.luca.run/@luca/113950834185678114", format: "org.matrix.custom.html", - formatted_body: `๐ Forwarded message` + formatted_body: `โท Forwarded message` + `
If some folks have spare bandwidth then helping out ArchiveTeam with archiving soon to be deleted research and government data might be worthwhile https://social.luca.run/@luca/113950834185678114`, "m.mentions": {}, msgtype: "m.text" @@ -1820,9 +1820,9 @@ test("message2event: forwarded message with unreferenced mention", async t => { t.deepEqual(events, [{ $type: "m.room.message", msgtype: "m.text", - body: "[๐ Forwarded message]\nยป @unknown-user:\nยป ๐๏ธ Uploaded file: https://bridge.example.org/download/discordcdn/893634327722721290/1463174815119704114/2022-10-18_16-49-46.mp4 (51 MB)", + body: "[โท Forwarded message]\nยป @unknown-user:\nยป ๐๏ธ Uploaded file: https://bridge.example.org/download/discordcdn/893634327722721290/1463174815119704114/2022-10-18_16-49-46.mp4 (51 MB)", format: "org.matrix.custom.html", - formatted_body: "๐ Forwarded message
@unknown-user:", + formatted_body: "โท Forwarded message
๐๏ธ Uploaded file: 2022-10-18_16-49-46.mp4 (51 MB)
@unknown-user:", "m.mentions": {} }]) })
๐๏ธ Uploaded file: 2022-10-18_16-49-46.mp4 (51 MB)