| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-06-03 00:29:53 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-06-03 00:29:53 UTC |
| parent | 0e6bc7baecaf10c0569fd86e2cd682acdc3d1e59 |
| borogove/Chat.hx | +2 | -0 |
diff --git a/borogove/Chat.hx b/borogove/Chat.hx index 1c9a0b3..4202063 100644 --- a/borogove/Chat.hx +++ b/borogove/Chat.hx @@ -653,6 +653,8 @@ abstract class Chat extends EventEmitter { lastMessage.isIncoming() ? "Incoming Call" : "Outgoing Call"; default: final txt = lastMessage.body().toPlainText() ?? ""; + if (txt == "" && lastMessage.attachments.length > 0) return "Media"; + txt.split("\n").find(line -> !~/(^[ \n]*$)|(^>)/.match(line)) ?? txt; } }