Skip to content

Commit

Permalink
Fix mobile cannot download attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
tddang-linagora authored and hoangdat committed Mar 15, 2024
1 parent 65b587b commit f342e14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class AttachmentItemWidget extends StatelessWidget {
return Material(
color: Colors.transparent,
child: InkWell(
onTap: isLoading ? null : () => viewAttachmentAction?.call(attachment),
onTap: isLoading ? null : () => (viewAttachmentAction ?? downloadAttachmentAction)?.call(attachment),
customBorder: const RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(AttachmentItemWidgetStyle.radius))
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class AttachmentListItemWidget extends StatelessWidget {
return Material(
type: MaterialType.transparency,
child: InkWell(
onTap: isLoading ? null : () => viewAttachmentAction?.call(attachment),
onTap: isLoading ? null : () => (viewAttachmentAction?? downloadAttachmentAction)?.call(attachment),
child: Padding(
padding: AttachmentListItemWidgetStyle.contentPadding,
child: Row(
Expand Down

0 comments on commit f342e14

Please sign in to comment.