fix: Send unencrypted thumbnails

There was just one toString() missing and this
lead to a crash in the app because hive tries to store
an URI.
This commit is contained in:
Christian Pauly 2021-08-28 17:17:25 +02:00
parent 04ff890670
commit aeea0669d5
3 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
## [0.3.5] - 28nd Aug 2021
- hotfix: Send unencrypted thumbnails
## [0.3.4] - 28nd Aug 2021
- fix: String.parseIdentifierIntoParts not working with unicode matrix.to links
Some clients do not uri-encode the identifier for matrix.to links, so we must

View File

@ -689,7 +689,7 @@ class Room {
'info': {
...file.info,
if (thumbnail != null && encryptedThumbnail == null)
'thumbnail_url': thumbnailUploadResp,
'thumbnail_url': thumbnailUploadResp.toString(),
if (thumbnail != null && encryptedThumbnail != null)
'thumbnail_file': {
'url': thumbnailUploadResp.toString(),

View File

@ -1,6 +1,6 @@
name: matrix
description: Matrix Dart SDK
version: 0.3.4
version: 0.3.5
homepage: https://famedly.com
environment: