Hide invitations for deleted contacts
This commit is contained in:
parent
bcf3d65522
commit
d49ae6e593
|
|
@ -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');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue