From a0b6bd0edfd8f259e01d0d715138be10f0f5179a Mon Sep 17 00:00:00 2001 From: SL Date: Thu, 30 Nov 2023 22:27:58 +0800 Subject: [PATCH] Modify query channel message error issue --- CHANGELOG.md | 4 +++- README.md | 2 +- lib/db/conversation.dart | 2 +- lib/db/message.dart | 2 +- pubspec.yaml | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9da4047..6254508 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,4 +37,6 @@ ### 1.1.8 * Update message reactions ### 1.1.9 - * Modify message reply to ack issue and Add protocol device flag field \ No newline at end of file + * Modify message reply to ack issue and Add protocol device flag field + ### 1.2.0 + * Modify query channel message error issue \ No newline at end of file diff --git a/README.md b/README.md index 6eb2add..1da8887 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ #### 安装 ``` dependencies: - wukongimfluttersdk: ^1.1.9 + wukongimfluttersdk: ^1.2.0 ``` #### 引入 ```dart diff --git a/lib/db/conversation.dart b/lib/db/conversation.dart index 6cd06fc..514c9dd 100644 --- a/lib/db/conversation.dart +++ b/lib/db/conversation.dart @@ -117,7 +117,7 @@ class ConversationDB { sb.write("'"); } String sql = - "select * from '${WKDBConst.tableConversation}' where channel_id in(${sb.toString()})"; + "select * from '${WKDBConst.tableConversation}' where channel_id in (${sb.toString()})"; List list = []; List> results = await WKDBHelper.shared.getDB().rawQuery(sql); diff --git a/lib/db/message.dart b/lib/db/message.dart index 2a58ac2..bb69952 100644 --- a/lib/db/message.dart +++ b/lib/db/message.dart @@ -488,7 +488,7 @@ class MessageDB { "select message_seq from ${WKDBConst.tableMessage} where channel_id='$channelID' and channel_type=$channelType and order_seq>$oldestOrderSeq and message_seq<>0 order by message_seq desc limit 1"; } else { sql = - "select message_seq from ${WKDBConst.tableMessage} where channel_id=$channelID and channel_type=$channelType and order_seq<$oldestOrderSeq and message_seq<>0 order by message_seq asc limit 1"; + "select message_seq from ${WKDBConst.tableMessage} where channel_id='$channelID' and channel_type=$channelType and order_seq<$oldestOrderSeq and message_seq<>0 order by message_seq asc limit 1"; } List> list = diff --git a/pubspec.yaml b/pubspec.yaml index 8e64d7a..6e3ba9f 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.1.9 +version: 1.2.0 homepage: https://github.com/WuKongIM/WuKongIMFlutterSDK environment: