From 96814381ec9d2d037b46df5e2236f7e918df6960 Mon Sep 17 00:00:00 2001 From: SL Date: Fri, 20 Sep 2024 14:58:00 +0800 Subject: [PATCH] fix: After successfully modifying the synchronization channel message, no problem was returned --- CHANGELOG.md | 4 +++- example/lib/http.dart | 4 +++- lib/db/message.dart | 7 ++----- pubspec.yaml | 2 +- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa8ee32..6dbd61e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -107,4 +107,6 @@ ### 1.5.3 * fix: Compatibility message extension editing content is empty, parsing error issue ### 1.5.4 - * fix: Update sync channel message \ No newline at end of file + * fix: Update sync channel message + ### 1.5.5 + * fix: After successfully modifying the synchronization channel message, no problem was returned \ No newline at end of file diff --git a/example/lib/http.dart b/example/lib/http.dart index c497227..fd734a5 100644 --- a/example/lib/http.dart +++ b/example/lib/http.dart @@ -8,7 +8,8 @@ import 'package:wukongimfluttersdk/entity/conversation.dart'; import 'package:wukongimfluttersdk/entity/msg.dart'; class HttpUtils { - static String apiURL = "https://api.githubim.com"; + // static String apiURL = "https://api.githubim.com"; + static String apiURL = "http://175.27.245.108:15001"; static Future login(String uid, String token) async { final httpClient = HttpClient(); @@ -148,6 +149,7 @@ class HttpUtils { dynamic json = messages[i]; msgList.add(getWKSyncMsg(json)); } + print('同步channel消息数量:${msgList.length}'); msg.messages = msgList; back(msg); } diff --git a/lib/db/message.dart b/lib/db/message.dart index 3d2692f..4be59d1 100644 --- a/lib/db/message.dart +++ b/lib/db/message.dart @@ -505,12 +505,9 @@ class MessageDB { (syncChannelMsg.messages != null && syncChannelMsg.messages!.length < limit)) { requestCount = 5; - getOrSyncHistoryMessages(channelId, channelType, oldestOrderSeq, - contain, pullMode, limit, iGetOrSyncHistoryMsgBack, syncBack); - } else { - requestCount = 0; - iGetOrSyncHistoryMsgBack(list); } + getOrSyncHistoryMessages(channelId, channelType, oldestOrderSeq, + contain, pullMode, limit, iGetOrSyncHistoryMsgBack, syncBack); } else { requestCount = 0; iGetOrSyncHistoryMsgBack(list); diff --git a/pubspec.yaml b/pubspec.yaml index 3b109d0..4283204 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ description: wukong IM flutter sdk # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.5.4 +version: 1.5.5 homepage: https://github.com/WuKongIM/WuKongIMFlutterSDK environment: