From bf270c7064d608d44beeed489886ddc92b897485 Mon Sep 17 00:00:00 2001 From: selfhoster1312 Date: Mon, 2 Mar 2026 21:59:00 +0100 Subject: [PATCH] fix: xmpp should no longer send empty messages, ever --- bridge/xmpp/xmpp.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go index 6a291c5ad..ff8be63ca 100644 --- a/bridge/xmpp/xmpp.go +++ b/bridge/xmpp/xmpp.go @@ -142,7 +142,11 @@ func (b *Bxmpp) Send(msg config.Message) (string, error) { } } - // Post normal message. + // Post normal message, if it's not empty. + if msg.Text == "" { + return "", nil + } + b.Log.Debugf("=> Sending message %#v", msg) if _, err := b.xc.Send(xmpp.Chat{ Type: "groupchat",