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

View File

@@ -850,7 +850,9 @@ async function messageToEvent(message, guild, options = {}, di) {
}
const {body, formatted_body} = stack[0].get()
await addTextEvent(body, formatted_body, "m.text")
if (body.trim().length) {
await addTextEvent(body, formatted_body, "m.text")
}
}
// Then polls