fix: After successfully modifying the synchronization channel message, no problem was returned

This commit is contained in:
SL 2024-09-20 14:58:00 +08:00
parent 19640d37ef
commit 96814381ec
4 changed files with 9 additions and 8 deletions

View File

@ -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
* fix: Update sync channel message
### 1.5.5
* fix: After successfully modifying the synchronization channel message, no problem was returned

View File

@ -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<int> 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);
}

View File

@ -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);

View File

@ -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: