From 44e240e12d32c0e67bbf86741f017c265a4d0721 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 20 Jul 2021 08:55:07 -0600 Subject: [PATCH] Doc some values --- src/utils/MediaEventHelper.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/MediaEventHelper.ts b/src/utils/MediaEventHelper.ts index 63616dbb12..cf34d5dea4 100644 --- a/src/utils/MediaEventHelper.ts +++ b/src/utils/MediaEventHelper.ts @@ -25,10 +25,14 @@ import { EventType, MsgType } from "matrix-js-sdk/src/@types/event"; // TODO: We should consider caching the blobs. https://github.com/vector-im/element-web/issues/17192 export class MediaEventHelper implements IDestroyable { + // Either an HTTP or Object URL (when encrypted) to the media. public readonly sourceUrl: LazyValue; public readonly thumbnailUrl: LazyValue; + + // Either the raw or decrypted (when encrypted) contents of the file. public readonly sourceBlob: LazyValue; public readonly thumbnailBlob: LazyValue; + public readonly media: Media; public constructor(private event: MatrixEvent) {