From dc15ec288c3a497aca4607aaac6e79da77eee306 Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 6 Nov 2018 06:02:23 +0800 Subject: [PATCH] Update gateway/gateway.go Co-Authored-By: patcon --- gateway/gateway.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/gateway.go b/gateway/gateway.go index 8cc4fdc4..9c419b5a 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -303,7 +303,7 @@ func (gw *Gateway) handleMessage(msg config.Message, dest *bridge.Bridge) []*BrM msg.Avatar = gw.modifyAvatar(origmsg, dest) msg.Username = gw.modifyUsername(origmsg, dest) msg.ID = "" - msg.ParentID = "" + msg.ParentID = gw.getDestMsgID(canonicalParentMsgID, dest, channel) msg.ID = gw.getDestMsgID(origmsg.ID, dest, channel)