diff options
author | Wim <wim@42.be> | 2017-06-18 15:44:54 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2017-06-18 15:44:54 +0200 |
commit | 2ddc4f7ae91a51bc8fa279fdab3c7d64600e1a25 (patch) | |
tree | 060c4b14360809d4981cbf3b3b6701e84c48af54 /bridge/matrix | |
parent | 2dd402675d774eec8a3d4b062afb6a5eaf6f884c (diff) | |
download | matterbridge-msglm-2ddc4f7ae91a51bc8fa279fdab3c7d64600e1a25.tar.gz matterbridge-msglm-2ddc4f7ae91a51bc8fa279fdab3c7d64600e1a25.tar.bz2 matterbridge-msglm-2ddc4f7ae91a51bc8fa279fdab3c7d64600e1a25.zip |
Add UserID to each message. Closes #200
Diffstat (limited to 'bridge/matrix')
-rw-r--r-- | bridge/matrix/matrix.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/matrix/matrix.go b/bridge/matrix/matrix.go index 628e8d91..2fd91b32 100644 --- a/bridge/matrix/matrix.go +++ b/bridge/matrix/matrix.go @@ -109,7 +109,7 @@ func (b *Bmatrix) handlematrix() error { username = re.ReplaceAllString(username, `$1`) } flog.Debugf("Sending message from %s on %s to gateway", ev.Sender, b.Account) - b.Remote <- config.Message{Username: username, Text: ev.Content["body"].(string), Channel: channel, Account: b.Account} + b.Remote <- config.Message{Username: username, Text: ev.Content["body"].(string), Channel: channel, Account: b.Account, UserID: ev.Sender} } flog.Debugf("Received: %#v", ev) }) |