diff --git a/bridge/matrix/matrix.go b/bridge/matrix/matrix.go index 2b805214..9e3073a3 100644 --- a/bridge/matrix/matrix.go +++ b/bridge/matrix/matrix.go @@ -591,12 +591,6 @@ func (b *Bmatrix) handleDownloadFile(rmsg *config.Message, content map[string]in rmsg.Extra = make(map[string][]interface{}) - //// moved to getMessageFileUrl - //if url, ok = content["url"].(string); !ok { - // return fmt.Errorf("url isn't a %T", url) - //} - //url = strings.Replace(url, "mxc://", b.GetString("Server")+"/_matrix/media/v1/download/", -1) - url, err := b.getMessageFileUrl(content) if err != nil { return err diff --git a/matterbridge.toml.sample b/matterbridge.toml.sample index 91ab3093..367f9837 100644 --- a/matterbridge.toml.sample +++ b/matterbridge.toml.sample @@ -1329,7 +1329,7 @@ StripNick=false #OPTIONAL (default false) ShowTopicChange=false -#Enable to send a URL rather than an image +#Enable to send a URL rather than a file #The default behavior is to download and send/upload the file. #OPTIONAL (default false) #SendUrlNotFile=true