add some methods

This commit is contained in:
SL 2023-10-05 18:03:04 +08:00
parent f3b36c067e
commit ae12f93edb
6 changed files with 9 additions and 7 deletions

View File

@ -25,4 +25,6 @@
### 1.1.2
* Optimize connections
### 1.1.3
* Add some methods
* Add some methods
### 1.1.4
* update set reddot method

View File

@ -9,7 +9,7 @@
#### 安装
```
dependencies:
wukongimfluttersdk: ^1.1.3
wukongimfluttersdk: ^1.1.4
```
#### 引入
```dart

View File

@ -499,7 +499,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.1.3"
version: "1.1.4"
x25519:
dependency: transitive
description:

View File

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

View File

@ -27,7 +27,7 @@ class WKConversationManager {
Future<bool> 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);

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.1.3
version: 1.1.4
homepage: https://github.com/WuKongIM/WuKongIMFlutterSDK
environment: