From 7f209248e3bf9612be76e0e0dfd7e3153b184716 Mon Sep 17 00:00:00 2001 From: other8026 <146984625+other8026@users.noreply.github.com> Date: Wed, 14 Feb 2024 15:36:43 +0800 Subject: [PATCH] fix a couple of comments --- bridge/matrix/matrix.go | 6 ------ matterbridge.toml.sample | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) 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