Media upload cancellation (#1058)
* Initial implementation of media upload cancellation * Add tests * Add changelog * Update screenshots * Add documentation * Fix lint issues * Fix review comments --------- Co-authored-by: ElementBot <benoitm+elementbot@element.io>
This commit is contained in:
parent
541562ee61
commit
814c8edc4f
19 changed files with 414 additions and 65 deletions
|
|
@ -25,6 +25,9 @@ import java.io.File
|
|||
|
||||
class FakeMediaPreProcessor : MediaPreProcessor {
|
||||
|
||||
var processCallCount = 0
|
||||
private set
|
||||
|
||||
private var result: Result<MediaUploadInfo> = Result.success(
|
||||
MediaUploadInfo.AnyFile(
|
||||
File("test"),
|
||||
|
|
@ -43,6 +46,7 @@ class FakeMediaPreProcessor : MediaPreProcessor {
|
|||
deleteOriginal: Boolean,
|
||||
compressIfPossible: Boolean
|
||||
): Result<MediaUploadInfo> = simulateLongTask {
|
||||
processCallCount++
|
||||
result
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue