Only send components if they rendered to something

This commit is contained in:
Cadence Ember
2026-02-03 01:22:38 +13:00
parent b16d731ddb
commit 45285a4835
+2
View File
@@ -850,8 +850,10 @@ async function messageToEvent(message, guild, options = {}, di) {
}
const {body, formatted_body} = stack[0].get()
if (body.trim().length) {
await addTextEvent(body, formatted_body, "m.text")
}
}
// Then polls
if (message.poll) {