Browse Source

convastion list message type show

wr_202303
zsw 4 months ago
parent
commit
45cfc3a22c
  1. 1
      lib/im/SocketClient.dart
  2. 1
      lib/im/chat_details_page.dart

1
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()}");

1
lib/im/chat_details_page.dart

@ -286,6 +286,7 @@ class _ChatDetailsPage extends State<ChatDetailsPage>
////
Future getImageOrVideo(GalleryMode galleryMode) async {
if (selectCount == 0) return;
mediaPaths.clear();
List<Media> medias = await ImagePickers.pickerPaths(
galleryMode: galleryMode,
selectCount: (galleryMode == GalleryMode.video) ? 1 : selectCount,

Loading…
Cancel
Save