diff --git a/lib/src/Room.dart b/lib/src/Room.dart index 2513f7a3..99711084 100644 --- a/lib/src/Room.dart +++ b/lib/src/Room.dart @@ -147,7 +147,7 @@ class Room { Future setName(String newName) async { dynamic res = await client.connection.jsonRequest( type: HTTPType.PUT, - action: "/client/r0/rooms/${id}/state/m.room.name}", + action: "/client/r0/rooms/${id}/state/m.room.name", data: {"name": newName}); if (res is ErrorResponse) client.connection.onError.add(res); return res; @@ -157,7 +157,7 @@ class Room { Future setDescription(String newName) async { dynamic res = await client.connection.jsonRequest( type: HTTPType.PUT, - action: "/client/r0/rooms/${id}/state/m.room.topic}", + action: "/client/r0/rooms/${id}/state/m.room.topic", data: {"topic": newName}); if (res is ErrorResponse) client.connection.onError.add(res); return res;