Skip to content

Commit

Permalink
Fix: Null error in message in the when in synced state.
Browse files Browse the repository at this point in the history
  • Loading branch information
umareko committed Jun 27, 2024
1 parent df4a75b commit 329aa7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/core/widget/message_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ class AmityMessageContentWidget extends StatelessWidget {
onPressed: () {},
icon: const Icon(Icons.attach_file_rounded),
label: Text(
data.file!.getFilePath!.split('/').last,
data.file?.getFilePath?.split('/').last ?? data.file?.getUrl ?? "",
),
)
: Container(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_social_sample_app
description: Demonstrates how to use the flutter_application_1 plugin.
version: 1.1.46+61
version: 1.1.47+62



Expand Down

0 comments on commit 329aa7f

Please sign in to comment.