Merge pull request #1936 from famedly/krille/make-clear-that-upload-content-does-not-e2ee

chore: Make more clear that Client.uploadContent() does not end to end encrypt the file
This commit is contained in:
Krille-chan 2024-10-08 14:59:22 +02:00 committed by GitHub
commit 6117e1cba8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -1455,8 +1455,10 @@ class Client extends MatrixApi {
: super.getUrlPreview(url, ts: ts);
}
/// Uploads a file and automatically caches it in the database, if it is small enough
/// and returns the mxc url.
/// Uploads a file into the Media Repository of the server and also caches it
/// in the local database, if it is small enough.
/// Returns the mxc url. Please note, that this does **not** encrypt
/// the content. Use `Room.sendFileEvent()` for end to end encryption.
@override
Future<Uri> uploadContent(Uint8List file,
{String? filename, String? contentType}) async {