mirror of
https://github.com/WuKongIM/WuKongIMFlutterSDK
synced 2025-05-30 07:27:25 +00:00
add some methods
This commit is contained in:
parent
f3b36c067e
commit
ae12f93edb
@ -25,4 +25,6 @@
|
|||||||
### 1.1.2
|
### 1.1.2
|
||||||
* Optimize connections
|
* Optimize connections
|
||||||
### 1.1.3
|
### 1.1.3
|
||||||
* Add some methods
|
* Add some methods
|
||||||
|
### 1.1.4
|
||||||
|
* update set reddot method
|
@ -9,7 +9,7 @@
|
|||||||
#### 安装
|
#### 安装
|
||||||
```
|
```
|
||||||
dependencies:
|
dependencies:
|
||||||
wukongimfluttersdk: ^1.1.3
|
wukongimfluttersdk: ^1.1.4
|
||||||
```
|
```
|
||||||
#### 引入
|
#### 引入
|
||||||
```dart
|
```dart
|
||||||
|
@ -499,7 +499,7 @@ packages:
|
|||||||
path: ".."
|
path: ".."
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "1.1.3"
|
version: "1.1.4"
|
||||||
x25519:
|
x25519:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -196,7 +196,7 @@ class ConversationDB {
|
|||||||
dynamic map, String channelID, int channelType) async {
|
dynamic map, String channelID, int channelType) async {
|
||||||
return await WKDBHelper.shared.getDB().update(
|
return await WKDBHelper.shared.getDB().update(
|
||||||
WKDBConst.tableConversation, map,
|
WKDBConst.tableConversation, map,
|
||||||
where: "channel_id=$channelID and channel_type=$channelType");
|
where: "channel_id='$channelID' and channel_type=$channelType");
|
||||||
}
|
}
|
||||||
|
|
||||||
WKUIConversationMsg getUIMsg(WKConversationMsg conversationMsg) {
|
WKUIConversationMsg getUIMsg(WKConversationMsg conversationMsg) {
|
||||||
|
@ -27,7 +27,7 @@ class WKConversationManager {
|
|||||||
Future<bool> deleteMsg(String channelID, int channelType) async {
|
Future<bool> deleteMsg(String channelID, int channelType) async {
|
||||||
bool result = await ConversationDB.shared.delete(channelID, channelType);
|
bool result = await ConversationDB.shared.delete(channelID, channelType);
|
||||||
if (result) {
|
if (result) {
|
||||||
setDeleteMsg(channelID, channelType);
|
_setDeleteMsg(channelID, channelType);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
@ -103,7 +103,7 @@ class WKConversationManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setDeleteMsg(String channelID, int channelType) {
|
_setDeleteMsg(String channelID, int channelType) {
|
||||||
if (_deleteMsgMap != null) {
|
if (_deleteMsgMap != null) {
|
||||||
_deleteMsgMap!.forEach((key, back) {
|
_deleteMsgMap!.forEach((key, back) {
|
||||||
back(channelID, channelType);
|
back(channelID, channelType);
|
||||||
|
@ -15,7 +15,7 @@ description: wukong IM flutter sdk
|
|||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# 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
|
# 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.
|
# 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
|
homepage: https://github.com/WuKongIM/WuKongIMFlutterSDK
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user