Use a new msgID when replacing messages (xmpp). Fixes #1584

This commit is contained in:
Wim
2021-10-24 22:57:11 +02:00
parent b1f403165d
commit 07584a5563

View File

@@ -128,7 +128,6 @@ func (b *Bxmpp) Send(msg config.Message) (string, error) {
var msgReplaceID string
msgID := xid.New().String()
if msg.ID != "" {
msgID = msg.ID
msgReplaceID = msg.ID
}
b.Log.Debugf("=> Sending message %#v", msg)