diff options
author | Wim <wim@42.be> | 2021-04-03 19:16:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-03 19:16:46 +0200 |
commit | 21eb37e471c338a90f2e23c86106f7e49e2d1196 (patch) | |
tree | e7d1cfa89f31fcf0578edae7727f2230bba744a2 /gateway | |
parent | d3b60cc445e5871971b543fde9483dba3924bf68 (diff) | |
download | matterbridge-msglm-21eb37e471c338a90f2e23c86106f7e49e2d1196.tar.gz matterbridge-msglm-21eb37e471c338a90f2e23c86106f7e49e2d1196.tar.bz2 matterbridge-msglm-21eb37e471c338a90f2e23c86106f7e49e2d1196.zip |
Update vendor (#1446)
* Update vendor
* Use upstream emoji lib again
Diffstat (limited to 'gateway')
-rw-r--r-- | gateway/gateway.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go index aa7144f8..1c6c21c3 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -14,7 +14,7 @@ import ( "github.com/d5/tengo/v2" "github.com/d5/tengo/v2/stdlib" lru "github.com/hashicorp/golang-lru" - "github.com/matterbridge/emoji" + "github.com/kyokomi/emoji/v2" "github.com/sirupsen/logrus" ) @@ -127,7 +127,7 @@ func (gw *Gateway) AddConfig(cfg *config.Gateway) error { gw.logger.Errorf("mapChannels() failed: %s", err) } for _, br := range append(gw.MyConfig.In, append(gw.MyConfig.InOut, gw.MyConfig.Out...)...) { - br := br //scopelint + br := br // scopelint err := gw.AddBridge(&br) if err != nil { return err @@ -386,6 +386,7 @@ func (gw *Gateway) modifyMessage(msg *config.Message) { } // replace :emoji: to unicode + emoji.ReplacePadding = "" msg.Text = emoji.Sprint(msg.Text) br := gw.Bridges[msg.Account] @@ -496,7 +497,7 @@ func (gw *Gateway) SendMessage( if mID != "" { gw.logger.Debugf("mID %s: %s", dest.Account, mID) return mID, nil - //brMsgIDs = append(brMsgIDs, &BrMsgID{dest, dest.Protocol + " " + mID, channel.ID}) + // brMsgIDs = append(brMsgIDs, &BrMsgID{dest, dest.Protocol + " " + mID, channel.ID}) } return "", nil } |