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,
|
||||
color: backgroundColor,
|
||||
child: FutureBuilder(
|
||||
future: room.loadHeroUsers(),
|
||||
builder: (context, snapshot) => HoverBuilder(
|
||||
future: room.name.isEmpty ? room.loadHeroUsers() : null,
|
||||
builder: (context, _) => HoverBuilder(
|
||||
builder: (context, listTileHovered) => ListTile(
|
||||
visualDensity: const VisualDensity(vertical: -0.5),
|
||||
contentPadding: const EdgeInsets.symmetric(horizontal: 8),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue