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