Fix membership table column
This commit is contained in:
parent
d5d1aa53b2
commit
db3c3f0c6d
|
@ -364,6 +364,7 @@ class Room {
|
|||
return Room(
|
||||
id: row["id"],
|
||||
name: name,
|
||||
membership: row["membership"],
|
||||
topic: row["description"],
|
||||
avatar: MxContent(avatarUrl),
|
||||
notificationCount: row["notification_count"],
|
||||
|
|
|
@ -42,6 +42,7 @@ void main() {
|
|||
|
||||
final String id = "!localpart:server.abc";
|
||||
final String name = "My Room";
|
||||
final String membership = "join";
|
||||
final String topic = "This is my own room";
|
||||
final int unread = DateTime.now().millisecondsSinceEpoch;
|
||||
final int notificationCount = 2;
|
||||
|
@ -60,6 +61,7 @@ void main() {
|
|||
|
||||
final Map<String, dynamic> jsonObj = {
|
||||
"id": id,
|
||||
"membership": membership,
|
||||
"topic": name,
|
||||
"description": topic,
|
||||
"avatar_url": "",
|
||||
|
@ -93,6 +95,7 @@ void main() {
|
|||
room = await Room.getRoomFromTableRow(jsonObj, matrix);
|
||||
|
||||
expect(room.id, id);
|
||||
expect(room.membership, membership);
|
||||
expect(room.name, name);
|
||||
expect(room.topic, topic);
|
||||
expect(room.avatar.mxc, "");
|
||||
|
|
Loading…
Reference in a new issue