Merge pull request #2157 from famedly/krille/remove-unused-callbacks
chore: Remove unused callbacks
This commit is contained in:
commit
99745b0e21
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue