async media: add ability to upload media asynchronously

Requires a homeserver with MSC2246 support
This commit is contained in:
Sumner Evans
2022-04-25 21:29:35 -06:00
parent c5f58afe71
commit a695b045c8
6 changed files with 36 additions and 25 deletions

View File

@@ -720,7 +720,7 @@ func (u *User) updateDirectChats(chats map[id.UserID][]id.RoomID) {
var err error
if u.bridge.Config.Homeserver.Asmux {
urlPath := intent.BuildBaseURL("_matrix", "client", "unstable", "com.beeper.asmux", "dms")
urlPath := intent.BuildURL(mautrix.ClientURLPath{"unstable", "com.beeper.asmux", "dms"})
_, err = intent.MakeFullRequest(mautrix.FullRequest{
Method: method,
URL: urlPath,