mirror of
https://github.com/WuKongIM/WuKongIMFlutterSDK
synced 2025-06-04 02:38:00 +00:00
add update local extra method
This commit is contained in:
parent
fa1a4bb114
commit
9cfd3004a4
@ -565,6 +565,19 @@ class WKMessageManager {
|
|||||||
MessageDB.shared.updateSendingMsgFail();
|
MessageDB.shared.updateSendingMsgFail();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateLocalExtraWithClientMsgNo(String clientMsgNO, dynamic data) async {
|
||||||
|
WKMsg? wkMsg = await MessageDB.shared.queryWithClientMsgNo(clientMsgNO);
|
||||||
|
if (wkMsg != null) {
|
||||||
|
var map = <String, Object>{};
|
||||||
|
map['extra'] = jsonEncode(data);
|
||||||
|
int result = await MessageDB.shared
|
||||||
|
.updateMsgWithFieldAndClientMsgNo(map, clientMsgNO);
|
||||||
|
if (result > 0) {
|
||||||
|
setRefreshMsg(wkMsg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
deleteWithClientMsgNo(String clientMsgNo) async {
|
deleteWithClientMsgNo(String clientMsgNo) async {
|
||||||
var map = <String, Object>{};
|
var map = <String, Object>{};
|
||||||
map['is_deleted'] = 1;
|
map['is_deleted'] = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user