updateLocalExtraWithClientMsgNo method
dynamic
updateLocalExtraWithClientMsgNo(
)
Implementation
updateLocalExtraWithClientMsgNo(
String clientMsgNO, Map<String, dynamic>? data) async {
WKMsg? wkMsg = await MessageDB.shared.queryWithClientMsgNo(clientMsgNO);
if (wkMsg != null) {
var map = <String, Object>{};
map['extra'] = WKDBConst.safeJsonEncode(data);
int result = await MessageDB.shared
.updateMsgWithFieldAndClientMsgNo(map, clientMsgNO);
if (result > 0) {
wkMsg.localExtraMap = data;
setRefreshMsg(wkMsg);
}
}
}