refactor: Add more stricter lints

This commit is contained in:
Christian Kußowski 2026-02-20 14:03:46 +01:00
commit 5283d0fcc8
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
15 changed files with 66 additions and 60 deletions

View file

@ -56,9 +56,9 @@ class ChatListItem extends StatelessWidget {
return const SizedBox.shrink();
}
final needLastEventSender = lastEvent == null
? false
: room.getState(EventTypes.RoomMember, lastEvent.senderId) == null;
final needLastEventSender =
lastEvent != null &&
room.getState(EventTypes.RoomMember, lastEvent.senderId) == null;
final space = this.space;
return Padding(