From 45cfc3a22c63e1321201cd6cce23e6196ce51947 Mon Sep 17 00:00:00 2001 From: zsw Date: Sun, 29 Sep 2024 17:47:49 +0800 Subject: [PATCH] convastion list message type show --- lib/im/SocketClient.dart | 1 + lib/im/chat_details_page.dart | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/im/SocketClient.dart b/lib/im/SocketClient.dart index f35df628..ee04f98c 100644 --- a/lib/im/SocketClient.dart +++ b/lib/im/SocketClient.dart @@ -218,6 +218,7 @@ class SocketClient { final proto2 = Proto(5, 1, msgData.writeToBuffer()); try { _socket.add(proto2.toBytes()); + debugPrint("socket-send-success:"); } catch (e) { hxDatabase.update({"id": id, "state": 3}).catchError((error) { debugPrint("insertMessage: ${error.toString()}"); diff --git a/lib/im/chat_details_page.dart b/lib/im/chat_details_page.dart index 6155f1e6..c39812ef 100644 --- a/lib/im/chat_details_page.dart +++ b/lib/im/chat_details_page.dart @@ -286,6 +286,7 @@ class _ChatDetailsPage extends State ///图片/视频选择 Future getImageOrVideo(GalleryMode galleryMode) async { if (selectCount == 0) return; + mediaPaths.clear(); List medias = await ImagePickers.pickerPaths( galleryMode: galleryMode, selectCount: (galleryMode == GalleryMode.video) ? 1 : selectCount,