Fix getRoomFromTableRow
This commit is contained in:
parent
5d6f186b3c
commit
e2fa2844d3
|
@ -341,9 +341,9 @@ class Room {
|
|||
if (name == "")
|
||||
name = await matrix.store?.getChatNameFromMemberNames(row["id"]) ?? "";
|
||||
|
||||
if (row["avatar_url"] == "")
|
||||
row["avatar_url"] =
|
||||
await matrix.store?.getAvatarFromSingleChat(row["id"]) ?? "";
|
||||
String avatarUrl = row["avatar_url"];
|
||||
if (avatarUrl == "")
|
||||
avatarUrl = await matrix.store?.getAvatarFromSingleChat(row["id"]) ?? "";
|
||||
|
||||
return Room(
|
||||
id: row["id"],
|
||||
|
|
Loading…
Reference in a new issue