| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-07-21 19:12:47 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-07-21 19:12:47 UTC |
| parent | 8c29ab41f1445dece27c9bc85b2b210b34ab88bd |
| borogove/Message.hx | +1 | -1 |
diff --git a/borogove/Message.hx b/borogove/Message.hx index 7643d16..0534d3d 100644 --- a/borogove/Message.hx +++ b/borogove/Message.hx @@ -256,7 +256,7 @@ class Message { } final aesgcmBody = XEP0454.parse(msg.text ?? ""); - if (aesgcmBody != null && msg.text != null) { + if (aesgcmBody != null && msg.text != null && msg.attachments.length < 1) { msg.addAttachment(new ChatAttachment(null, aesgcmBody.mime, null, [msg.text], [])); msg.text = null; }