diff options
author | Wim <wim@42.be> | 2019-04-08 23:30:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-08 23:30:22 +0200 |
commit | 5677c912a81cc1dc7d73543a89c2a1e06de65bba (patch) | |
tree | 5c07e0ecf28100f308b7f26dd1effe42925c6b45 /bridge/rocketchat/rocketchat.go | |
parent | 7a24de15e42858e19993b646860988b89a1c24e4 (diff) | |
download | matterbridge-msglm-5677c912a81cc1dc7d73543a89c2a1e06de65bba.tar.gz matterbridge-msglm-5677c912a81cc1dc7d73543a89c2a1e06de65bba.tar.bz2 matterbridge-msglm-5677c912a81cc1dc7d73543a89c2a1e06de65bba.zip |
Add useraction support (rocketchat). Closes #772 (#794)
Diffstat (limited to 'bridge/rocketchat/rocketchat.go')
-rw-r--r-- | bridge/rocketchat/rocketchat.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bridge/rocketchat/rocketchat.go b/bridge/rocketchat/rocketchat.go index fa1dd281..59f0e99c 100644 --- a/bridge/rocketchat/rocketchat.go +++ b/bridge/rocketchat/rocketchat.go @@ -108,6 +108,11 @@ func (b *Brocketchat) Send(msg config.Message) (string, error) { msg.Channel = strings.TrimPrefix(msg.Channel, "#") channel := &models.Channel{ID: b.getChannelID(msg.Channel), Name: msg.Channel} + // Make a action /me of the message + if msg.Event == config.EventUserAction { + msg.Text = "_" + msg.Text + "_" + } + // Delete message if msg.Event == config.EventMsgDelete { if msg.ID == "" { |