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) { if (kIsWeb) {
reportErrors = WebUtils.getHtmlValue('report-errors') == '1'; reportErrors = WebUtils.getHtmlValue('report-errors') == '1';
if (reportErrors) { 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, (contact) => contact.id == invitation.contactId,
orElse: () => ContactEntity()); orElse: () => ContactEntity());
if (contact.isNew) {
return SizedBox();
}
Widget icon = Icon(Icons.contacts); Widget icon = Icon(Icons.contacts);
switch (invitation.emailStatus) { switch (invitation.emailStatus) {
case InvitationEntity.EMAIL_STATUS_DELIVERED: case InvitationEntity.EMAIL_STATUS_DELIVERED: