From a48f1519b6b07bff20fb0aada1e961d3ccdba3c5 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Fri, 26 Jul 2019 13:32:18 +0200 Subject: [PATCH] [Room] Fix changename requests --- lib/src/Room.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/Room.dart b/lib/src/Room.dart index 2513f7a..9971108 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;