forked from matrix-org/matrix-js-sdk
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
After an upload completed, we were failing to delete the details of the upload from the list (because the comparison was bogus), meaning we leaked an object each time. While we're in the area: - make the request methods take an opts object (instead of a localTimeout param), and deprecate the WithPrefix versions. - make the non-xhr path for uploadContent use authedRequest instead of rolling its own. - make cancelUpload use the promise.abort() hack for simplicity
- Loading branch information
Showing
1 changed file
with
122 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters