Only send components if they rendered to something
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user