diff --git a/lib/ui/views/TIMUIKitChat/TIMUIKitMessageItem/tim_uikit_chat_file_elem.dart b/lib/ui/views/TIMUIKitChat/TIMUIKitMessageItem/tim_uikit_chat_file_elem.dart index 3123469..f1dba03 100644 --- a/lib/ui/views/TIMUIKitChat/TIMUIKitMessageItem/tim_uikit_chat_file_elem.dart +++ b/lib/ui/views/TIMUIKitChat/TIMUIKitMessageItem/tim_uikit_chat_file_elem.dart @@ -56,6 +56,7 @@ class _TIMUIKitFileElemState extends TIMUIKitState { V2TimAdvancedMsgListener? advancedMsgListener; final GlobalKey containerKey = GlobalKey(); double? containerHeight; + bool? _downloadFailed = false; @override void dispose() { @@ -88,6 +89,7 @@ class _TIMUIKitFileElemState extends TIMUIKitState { if (messageProgress.msgID == widget.message.msgID) { if (messageProgress.isError || messageProgress.errorCode != 0) { setState(() { + _downloadFailed = true; }); return; } diff --git a/pubspec.yaml b/pubspec.yaml index ceded42..be2f0c6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: tencent_cloud_chat_uikit description: A powerful chat UI component library and business logic for Tencent Cloud Chat, creating seamless in-app chat modules for delightful user experiences. -version: 2.6.0 +version: 2.6.0+1 homepage: https://trtc.io/products/chat?utm_source=gfs&utm_medium=link&utm_campaign=%E6%B8%A0%E9%81%93&_channel_track_key=k6WgfCKn repository: https://github.com/TencentCloud/chat-uikit-flutter documentation: https://comm.qq.com/im/doc/flutter/en/TUIKit/readme.html