Populate info.duration for audio & video file uploads (#11225)
* Improve m.file m.image m.audio m.video types * Populate `info.duration` for audio & video file uploads * Fix tests * Iterate types * Improve coverage * Fix test * Add small delay to stabilise cypress test * Fix test idempotency * Improve coverage * Slow down * iterate
This commit is contained in:
parent
8b8ca425d7
commit
f04a0e2860
17 changed files with 556 additions and 85 deletions
|
@ -16,11 +16,11 @@ limitations under the License.
|
|||
|
||||
import { IEventRelation, UploadProgress } from "matrix-js-sdk/src/matrix";
|
||||
|
||||
import { IEncryptedFile } from "../customisations/models/IMediaEventContent";
|
||||
import { EncryptedFile } from "../customisations/models/IMediaEventContent";
|
||||
|
||||
export class RoomUpload {
|
||||
public readonly abortController = new AbortController();
|
||||
public promise?: Promise<{ url?: string; file?: IEncryptedFile }>;
|
||||
public promise?: Promise<{ url?: string; file?: EncryptedFile }>;
|
||||
private uploaded = 0;
|
||||
|
||||
public constructor(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue