fix: Do not request hero users for rooms with name

This commit is contained in:
Christian Kußowski 2025-12-06 15:49:10 +01:00
parent e80e3273ea
commit 4f196b29bd
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -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),