From 5677c912a81cc1dc7d73543a89c2a1e06de65bba Mon Sep 17 00:00:00 2001 From: Wim Date: Mon, 8 Apr 2019 23:30:22 +0200 Subject: Add useraction support (rocketchat). Closes #772 (#794) --- bridge/rocketchat/rocketchat.go | 5 +++++ 1 file changed, 5 insertions(+) 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 == "" { -- cgit v1.2.3