Skip to content

Commit

Permalink
Fix/rendering when contact name is unknown and relationship is not ye…
Browse files Browse the repository at this point in the history
…t requested (#270)
  • Loading branch information
Vin-RM authored Sep 17, 2024
1 parent 20179c8 commit 90fac3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/enmeshed/lib/account/contacts/contacts_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class _ContactsViewState extends State<ContactsView> {

String _contactToCategory(RequestOrRelationship requestOrRelationship) => switch (_sortingType) {
_ContactsSortingType.date => simpleTimeago(context, requestOrRelationship.sortingDate),
_ContactsSortingType.name => requestOrRelationship.contact.initials[0].toUpperCase(),
_ContactsSortingType.name => requestOrRelationship.contact.isUnknown ? '' : requestOrRelationship.contact.initials[0].toUpperCase(),
};

Future<void> _reload({bool syncBefore = false, bool isFirstTime = false}) async {
Expand Down

0 comments on commit 90fac3d

Please sign in to comment.