Saves avatar when creating new space
This commit is contained in:
parent
7dc84c4ca5
commit
9e6a3fd21c
1 changed files with 4 additions and 0 deletions
|
|
@ -198,6 +198,10 @@ class NewSpaceController extends State<NewSpace> {
|
|||
space.updateRoomCapacity(capacity);
|
||||
}
|
||||
|
||||
if (avatar != null && space != null) {
|
||||
space.setAvatar(MatrixFile(bytes: avatar, name: 'Avatar'));
|
||||
}
|
||||
|
||||
final Room? room = Matrix.of(context).client.getRoomById(spaceId);
|
||||
if (room == null) {
|
||||
ErrorHandler.logError(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue