diff --git a/CHANGELOG.md b/CHANGELOG.md index 02c6b26..344c60b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,4 +25,6 @@ ### 1.1.2 * Optimize connections ### 1.1.3 - * Add some methods \ No newline at end of file + * Add some methods + ### 1.1.4 + * update set reddot method \ No newline at end of file diff --git a/README.md b/README.md index f432e34..7ccbf08 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ #### 安装 ``` dependencies: - wukongimfluttersdk: ^1.1.3 + wukongimfluttersdk: ^1.1.4 ``` #### 引入 ```dart diff --git a/example/pubspec.lock b/example/pubspec.lock index ce49fab..54dd770 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -499,7 +499,7 @@ packages: path: ".." relative: true source: path - version: "1.1.3" + version: "1.1.4" x25519: dependency: transitive description: diff --git a/lib/db/conversation.dart b/lib/db/conversation.dart index ba3ee3d..6cd06fc 100644 --- a/lib/db/conversation.dart +++ b/lib/db/conversation.dart @@ -196,7 +196,7 @@ class ConversationDB { dynamic map, String channelID, int channelType) async { return await WKDBHelper.shared.getDB().update( WKDBConst.tableConversation, map, - where: "channel_id=$channelID and channel_type=$channelType"); + where: "channel_id='$channelID' and channel_type=$channelType"); } WKUIConversationMsg getUIMsg(WKConversationMsg conversationMsg) { diff --git a/lib/manager/conversation_manager.dart b/lib/manager/conversation_manager.dart index 5ab30ee..5f53300 100644 --- a/lib/manager/conversation_manager.dart +++ b/lib/manager/conversation_manager.dart @@ -27,7 +27,7 @@ class WKConversationManager { Future deleteMsg(String channelID, int channelType) async { bool result = await ConversationDB.shared.delete(channelID, channelType); if (result) { - setDeleteMsg(channelID, channelType); + _setDeleteMsg(channelID, channelType); } return result; @@ -103,7 +103,7 @@ class WKConversationManager { } } - setDeleteMsg(String channelID, int channelType) { + _setDeleteMsg(String channelID, int channelType) { if (_deleteMsgMap != null) { _deleteMsgMap!.forEach((key, back) { back(channelID, channelType); diff --git a/pubspec.yaml b/pubspec.yaml index 7b643bd..ced8645 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.3 +version: 1.1.4 homepage: https://github.com/WuKongIM/WuKongIMFlutterSDK environment: