Hide invitations for deleted contacts

This commit is contained in:
Hillel Coren 2021-06-27 11:18:18 +03:00
parent bcf3d65522
commit d49ae6e593
2 changed files with 5 additions and 1 deletions

View File

@ -161,7 +161,7 @@ Future<AppState> _initialState(bool isTesting) async {
if (kIsWeb) {
reportErrors = WebUtils.getHtmlValue('report-errors') == '1';
if (reportErrors) {
print('## ERROR reporting is enabled');
print('## Error reporting is enabled');
}
}

View File

@ -48,6 +48,10 @@ class _InvitationListTile extends StatelessWidget {
(contact) => contact.id == invitation.contactId,
orElse: () => ContactEntity());
if (contact.isNew) {
return SizedBox();
}
Widget icon = Icon(Icons.contacts);
switch (invitation.emailStatus) {
case InvitationEntity.EMAIL_STATUS_DELIVERED: