Update gateway/gateway.go

Co-Authored-By: patcon <patrick.c.connolly@gmail.com>
This commit is contained in:
Wim
2018-11-06 06:02:23 +08:00
committed by Patrick Connolly
parent c89ebd4261
commit dc15ec288c

View File

@@ -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)