[Room] Fix room id
This commit is contained in:
parent
e54f134d92
commit
76a1e538c7
|
@ -416,7 +416,7 @@ class Room {
|
|||
{Future<List<Map<String, dynamic>>> states,
|
||||
Future<List<Map<String, dynamic>>> 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"],
|
||||
|
|
|
@ -63,7 +63,7 @@ void main() {
|
|||
];
|
||||
|
||||
Map<String, dynamic> jsonObj = {
|
||||
"id": id,
|
||||
"room_id": id,
|
||||
"membership": membership.toString().split('.').last,
|
||||
"avatar_url": "",
|
||||
"notification_count": notificationCount,
|
||||
|
|
Loading…
Reference in a new issue