From cdf6814f0aceebc166bfd987c0f892bd1e4a7d45 Mon Sep 17 00:00:00 2001 From: Krille Date: Tue, 8 Oct 2024 12:45:20 +0200 Subject: [PATCH] chore: Make more clear that Client.uploadContent() does not end to end encrypt the file --- lib/src/client.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/src/client.dart b/lib/src/client.dart index c96f0680..fc6df426 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -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 uploadContent(Uint8List file, {String? filename, String? contentType}) async {