chore: Make more clear that Client.uploadContent() does not end to end encrypt the file

This commit is contained in:
Krille 2024-10-08 12:45:20 +02:00
parent 2527ea57ee
commit cdf6814f0a
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652
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 {