Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Nov 13, 2023
2 parents b917c93 + 46293cf commit 712d60b
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
7 changes: 6 additions & 1 deletion lib/data/models/invoice_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1794,6 +1794,7 @@ abstract class InvitationEntity extends Object
sentDate: '',
viewedDate: '',
openedDate: '',
messageId: '',
updatedAt: 0,
archivedAt: 0,
isDeleted: false,
Expand Down Expand Up @@ -1835,6 +1836,9 @@ abstract class InvitationEntity extends Object
@BuiltValueField(wireName: 'email_error', compare: false)
String get emailError;

@BuiltValueField(wireName: 'message_id', compare: false)
String get messageId;

String get downloadLink =>
'$link/download?t=${DateTime.now().millisecondsSinceEpoch}';

Expand Down Expand Up @@ -1903,7 +1907,8 @@ abstract class InvitationEntity extends Object
..clientContactId = ''
..vendorContactId = ''
..emailError = ''
..emailStatus = '';
..emailStatus = ''
..messageId = '';

static Serializer<InvitationEntity> get serializer =>
_$invitationEntitySerializer;
Expand Down
19 changes: 19 additions & 0 deletions lib/data/models/invoice_model.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion lib/ui/invoice/edit/invoice_edit_contacts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ class _ClientContactListTile extends StatelessWidget {
style: Theme.of(context).textTheme.bodySmall,
),
),
if ((invitation?.emailError ?? '').isNotEmpty)
if ((invitation?.emailError ?? '').isNotEmpty &&
invitation?.emailStatus !=
InvitationEntity.EMAIL_STATUS_DELIVERED)
Padding(
padding: const EdgeInsets.only(top: 8),
child: Text(
Expand Down

0 comments on commit 712d60b

Please sign in to comment.