4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-06-26 07:29:24 +00:00

Add gateway name to messages

This commit is contained in:
Wim
2017-06-05 23:12:19 +02:00
parent b8a2fcbaff
commit 5f30a98bc1
2 changed files with 2 additions and 0 deletions

View File

@ -200,6 +200,7 @@ func (gw *Gateway) handleMessage(msg config.Message, dest *bridge.Bridge) {
}
log.Debugf("Sending %#v from %s (%s) to %s (%s)", msg, msg.Account, originchannel, dest.Account, channel.Name)
msg.Channel = channel.Name
msg.Gateway = gw.Name
gw.modifyAvatar(&msg, dest)
gw.modifyUsername(&msg, dest)
// for api we need originchannel as channel