fix: Do not request hero users for rooms with name
This commit is contained in:
parent
e80e3273ea
commit
4f196b29bd
1 changed files with 2 additions and 2 deletions
|
|
@ -71,8 +71,8 @@ class ChatListItem extends StatelessWidget {
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
color: backgroundColor,
|
color: backgroundColor,
|
||||||
child: FutureBuilder(
|
child: FutureBuilder(
|
||||||
future: room.loadHeroUsers(),
|
future: room.name.isEmpty ? room.loadHeroUsers() : null,
|
||||||
builder: (context, snapshot) => HoverBuilder(
|
builder: (context, _) => HoverBuilder(
|
||||||
builder: (context, listTileHovered) => ListTile(
|
builder: (context, listTileHovered) => ListTile(
|
||||||
visualDensity: const VisualDensity(vertical: -0.5),
|
visualDensity: const VisualDensity(vertical: -0.5),
|
||||||
contentPadding: const EdgeInsets.symmetric(horizontal: 8),
|
contentPadding: const EdgeInsets.symmetric(horizontal: 8),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue