From 07584a5563c4386a712f8cfe0a868e74ea0a4afd Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 24 Oct 2021 22:57:11 +0200 Subject: [PATCH] Use a new msgID when replacing messages (xmpp). Fixes #1584 --- bridge/xmpp/xmpp.go | 1 - 1 file changed, 1 deletion(-) diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go index 6a0564ea9f..687ca07133 100644 --- a/bridge/xmpp/xmpp.go +++ b/bridge/xmpp/xmpp.go @@ -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)