Fix panic (matrix). Closes #316

This commit is contained in:
Wim 2017-12-11 12:25:28 +01:00
parent 0a91b9e1c9
commit 4a4a29c9f6
1 changed files with 1 additions and 0 deletions

View File

@ -106,6 +106,7 @@ func (b *Bmatrix) Send(msg config.Message) (string, error) {
res, err := b.mc.UploadToContentRepo(content, mtype, int64(len(*fi.Data))) res, err := b.mc.UploadToContentRepo(content, mtype, int64(len(*fi.Data)))
if err != nil { if err != nil {
flog.Errorf("file upload failed: %#v", err) flog.Errorf("file upload failed: %#v", err)
continue
} }
if strings.Contains(mtype, "video") { if strings.Contains(mtype, "video") {
flog.Debugf("sendVideo %s", res.ContentURI) flog.Debugf("sendVideo %s", res.ContentURI)