Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions bridge/matrix/matrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,10 @@ func (b *Bmatrix) handleUploadFile(msg *config.Message, roomID id.RoomID, fi *co
MsgType: event.MsgVideo,
FileName: fi.Name,
URL: id.ContentURIString(res.ContentURI.String()),
Info: &event.FileInfo{
MimeType: mtype,
Size: len(*fi.Data),
},
}

_, err2 := b.mc.SendMessageEvent(context.TODO(), roomID, event.EventMessage, content)
Expand Down
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
when they are images, it's no longer assumed that they are PNG ([#169](https://github.com/matterbridge-org/matterbridge/pull/169/))
- attachments with an unknown mimetype are discarded to avoid producing more errors further down ([#169](https://github.com/matterbridge-org/matterbridge/pull/169/))
- image attachments are now sent as images with more metadata ([#61](https://github.com/matterbridge-org/matterbridge/pull/61))
- video attachments advertise their size properly ([#188](https://github.com/matterbridge-org/matterbridge/pull/188)
- xmpp
- various upstream go-xmpp changes fix connection on SASL2 with PLAIN auth
- telegram
Expand Down
Loading