fixing test harness compilation error

This commit is contained in:
Adam Brown 2022-10-02 16:16:00 +01:00 committed by Adam Brown
parent 511273517e
commit a396712e8e
1 changed files with 9 additions and 0 deletions

View File

@ -185,6 +185,15 @@ class MatrixTestScope(private val testScope: TestScope) {
MessageService.Message.ImageMessage(
content = MessageService.Message.Content.ImageContent(
uri = file.absolutePath,
meta = JavaImageContentReader().meta(file.absolutePath).let {
MessageService.Message.Content.ImageContent.Meta(
height = it.height,
width = it.width,
size = it.size,
fileName = it.fileName,
mimeType = it.mimeType,
)
}
),
roomId = roomId,
sendEncrypted = isEncrypted,