Add some javadoc from Matrix spec and add EncryptedFileInfo where necessary

This commit is contained in:
Benoit Marty
2019-06-21 15:08:09 +02:00
committed by Benoit Marty
parent 8e76700c8d
commit 707a4712fc
17 changed files with 343 additions and 21 deletions

View File

@ -220,10 +220,10 @@ class MessageItemFactory @Inject constructor(
val (maxWidth, maxHeight) = timelineMediaSizeProvider.getMaxSize()
val thumbnailData = ImageContentRenderer.Data(
filename = messageContent.body,
url = messageContent.info?.thumbnailUrl,
height = messageContent.info?.height,
url = messageContent.videoInfo?.thumbnailUrl,
height = messageContent.videoInfo?.height,
maxHeight = maxHeight,
width = messageContent.info?.width,
width = messageContent.videoInfo?.width,
maxWidth = maxWidth
)