Fix bridge->bridge file names

WhatsApp uses the "title" and "fileName" fields for document names. The bridge
was only reading title and sending fileName, so sending a document from one
bridge to another through WhatsApp would lose the file name.

Also use names like "image.png" instead of "<random id>.png" for unnamed files
This commit is contained in:
Tulir Asokan
2020-11-02 17:18:18 +02:00
parent 0c60516702
commit a1740db0d7
3 changed files with 16 additions and 3 deletions

2
go.mod
View File

@@ -16,4 +16,4 @@ require (
maunium.net/go/mautrix v0.7.13
)
replace github.com/Rhymen/go-whatsapp => github.com/tulir/go-whatsapp v0.3.11
replace github.com/Rhymen/go-whatsapp => github.com/tulir/go-whatsapp v0.3.12