commit 97eefbde115d94475f357a362b0c45b979874fec
Author: Wim <wim@42.be>
Date: Sat Feb 16 18:35:36 2019 +0000
diff --git a/bridge/matrix/matrix.go b/bridge/matrix/matrix.go
index 45f26c7..708788a 100644
--- a/bridge/matrix/matrix.go
+++ b/bridge/matrix/matrix.go
@@ -2836 +28312 @@ func (b *Bmatrix) handleUploadFile(msg *config.Message, channel string, fi *conf
if err != nil {
b.Log.Errorf("file comment failed: %#v", err)
}
+ } else {
+ // image and video uploads send no username, we have to do this ourself here #715
+ _, err := b.mc.SendText(channel, msg.Username)
+ if err != nil {
+ b.Log.Errorf("file comment failed: %#v", err)
+ }
}
b.Log.Debugf("uploading file: %s %s", fi.Name, mtype)
res, err := b.mc.UploadToContentRepo(content, mtype, int64(len(*fi.Data)))