From 76a1e538c713b4b98cae38322233991ca7b7dde2 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Wed, 28 Aug 2019 13:06:41 +0200 Subject: [PATCH] [Room] Fix room id --- lib/src/Room.dart | 2 +- test/Room_test.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/Room.dart b/lib/src/Room.dart index 88cc2fc5..d87155d5 100644 --- a/lib/src/Room.dart +++ b/lib/src/Room.dart @@ -416,7 +416,7 @@ class Room { {Future>> states, Future>> roomAccountData}) async { Room newRoom = Room( - id: row["id"], + id: row["room_id"], membership: Membership.values .firstWhere((e) => e.toString() == 'Membership.' + row["membership"]), notificationCount: row["notification_count"], diff --git a/test/Room_test.dart b/test/Room_test.dart index 14c2fc95..cffb816d 100644 --- a/test/Room_test.dart +++ b/test/Room_test.dart @@ -63,7 +63,7 @@ void main() { ]; Map jsonObj = { - "id": id, + "room_id": id, "membership": membership.toString().split('.').last, "avatar_url": "", "notification_count": notificationCount,