Merge pull request #2157 from famedly/krille/remove-unused-callbacks

chore: Remove unused callbacks
This commit is contained in:
Krille-chan 2025-10-01 08:49:34 +02:00 committed by GitHub
commit 99745b0e21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 9 deletions

View File

@ -838,11 +838,6 @@ class Room {
Map<String, dynamic>? extraContent,
String? threadRootEventId,
String? threadLastEventId,
/// Callback which gets triggered on progress containing the amount of
/// uploaded bytes.
void Function(int)? onUploadProgress,
void Function(int)? onThumbnailUploadProgress,
}) async {
txid ??= client.generateUniqueTransactionId();
sendingFilePlaceholders[txid] = file;
@ -2109,10 +2104,7 @@ class Room {
/// Uploads a new avatar for this room. Returns the event ID of the new
/// m.room.avatar event. Insert null to remove the current avatar.
Future<String> setAvatar(
MatrixFile? file, {
void Function(int)? onUploadProgress,
}) async {
Future<String> setAvatar(MatrixFile? file) async {
final uploadResp = file == null
? null
: await client.uploadContent(