Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
matrix: Don't check announced file size, HTTP client will do it
  • Loading branch information
selfhoster1312 committed Mar 2, 2026
commit 0395d8eefbe8fe8ae30b6c9079e3ca642598ddc3
5 changes: 0 additions & 5 deletions bridge/matrix/matrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,6 @@ func (b *Bmatrix) handleDownloadFile(rmsg *config.Message, content event.Content
ok bool
url, name, msgtype, mtype string
info map[string]interface{}
size float64
)

rmsg.Extra = make(map[string][]interface{})
Expand All @@ -774,10 +773,6 @@ func (b *Bmatrix) handleDownloadFile(rmsg *config.Message, content event.Content
return fmt.Errorf("info isn't a %T", info)
}

if size, ok = info["size"].(float64); !ok {
return fmt.Errorf("size isn't a %T", size)
}

if name, ok = content.Raw["body"].(string); !ok {
return fmt.Errorf("name isn't a %T", name)
}
Expand Down
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
the return code is not 200 to avoid saving trash data ([#20](https://github.com/matterbridge-org/matterbridge/pull/20))
- matrix
- attachments received from matrix are working again, with authenticated media (MSC3916) implemented ([#61](https://github.com/matterbridge-org/matterbridge/pull/61))
- image attachments are now send as images with more metadata ([#61](https://github.com/matterbridge-org/matterbridge/pull/61))
- image attachments are now sent as images with more metadata ([#61](https://github.com/matterbridge-org/matterbridge/pull/61))
- xmpp
- various upstream go-xmpp changes fix connection on SASL2 with PLAIN auth
- telegram
Expand Down