Merge pull request #2131 from famedly/krille/fix-room-set-avatar-docs

chore: Clarify room.setAvatar docs
This commit is contained in:
td 2025-09-09 15:07:22 +02:00 committed by GitHub
commit cee65aa2a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1991,8 +1991,8 @@ class Room {
return (powerLevelState is Map<String, int>) ? powerLevelState : null; return (powerLevelState is Map<String, int>) ? powerLevelState : null;
} }
/// Uploads a new user avatar for this room. Returns the event ID of the new /// Uploads a new avatar for this room. Returns the event ID of the new
/// m.room.avatar event. Leave empty to remove the current avatar. /// m.room.avatar event. Insert null to remove the current avatar.
Future<String> setAvatar(MatrixFile? file) async { Future<String> setAvatar(MatrixFile? file) async {
final uploadResp = file == null final uploadResp = file == null
? null ? null