diff --git a/lib/src/room.dart b/lib/src/room.dart index 0c61e8f0..42c1ca08 100644 --- a/lib/src/room.dart +++ b/lib/src/room.dart @@ -838,11 +838,6 @@ class Room { Map? 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 setAvatar( - MatrixFile? file, { - void Function(int)? onUploadProgress, - }) async { + Future setAvatar(MatrixFile? file) async { final uploadResp = file == null ? null : await client.uploadContent(