From 80822b7fff85647ad5852b00ec36d046959aed92 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 3 Feb 2018 01:11:11 +0100 Subject: Send chat notification if media is too big to be re-uploaded to MediaServer. See #359 --- bridge/gitter/gitter.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bridge/gitter') diff --git a/bridge/gitter/gitter.go b/bridge/gitter/gitter.go index 6b1c2122..0d41c778 100644 --- a/bridge/gitter/gitter.go +++ b/bridge/gitter/gitter.go @@ -4,6 +4,7 @@ import ( "fmt" "github.com/42wim/go-gitter" "github.com/42wim/matterbridge/bridge/config" + "github.com/42wim/matterbridge/bridge/helper" log "github.com/Sirupsen/logrus" "strings" ) @@ -121,6 +122,9 @@ func (b *Bgitter) Send(msg config.Message) (string, error) { } if msg.Extra != nil { + for _, rmsg := range helper.HandleExtra(&msg, b.General) { + b.c.SendMessage(roomID, rmsg.Username+rmsg.Text) + } if len(msg.Extra["file"]) > 0 { for _, f := range msg.Extra["file"] { fi := f.(config.FileInfo) -- cgit v1.2.3