Remove smalltext from non-bots

I don't like it.
This commit is contained in:
Cadence Ember
2026-02-03 01:23:12 +13:00
parent 45285a4835
commit f287806bcd
3 changed files with 26 additions and 16 deletions
@@ -1605,3 +1605,18 @@ test("message2event: multiple-choice poll", async t => {
"org.matrix.msc1767.text": "more than one answer allowed\n1. [😭] no\n2. oh no\n3. oh noooooo"
}])
})
test("message2event: smalltext from regular user", async t => {
const events = await messageToEvent({
content: "-# hmm",
author: {
bot: false
}
})
t.deepEqual(events, [{
$type: "m.room.message",
msgtype: "m.text",
"m.mentions": {},
body: "...hmm"
}])
})