Merge pull request #2131 from famedly/krille/fix-room-set-avatar-docs
chore: Clarify room.setAvatar docs
This commit is contained in:
commit
cee65aa2a6
|
|
@ -1991,8 +1991,8 @@ class Room {
|
|||
return (powerLevelState is Map<String, int>) ? powerLevelState : null;
|
||||
}
|
||||
|
||||
/// Uploads a new user avatar for this room. Returns the event ID of the new
|
||||
/// m.room.avatar event. Leave empty to remove the current avatar.
|
||||
/// 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) async {
|
||||
final uploadResp = file == null
|
||||
? null
|
||||
|
|
|
|||
Loading…
Reference in New Issue