From 5c015608c0e4c145c1cc379bb76b712568fbadd2 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Wed, 12 Jun 2019 13:58:40 +0200 Subject: [PATCH] Add client to new room object --- lib/src/User.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/User.dart b/lib/src/User.dart index 94cf065..12c0a2a 100644 --- a/lib/src/User.dart +++ b/lib/src/User.dart @@ -144,7 +144,7 @@ class User { final String newRoomID = resp["room_id"]; - await Room(id: newRoomID).addToDirectChat(id); + await Room(id: newRoomID, client: room.client).addToDirectChat(id); return newRoomID; }