From 4787f68b83a329a2440201b29f1ff2da410ebaf6 Mon Sep 17 00:00:00 2001 From: SL Date: Fri, 26 Apr 2024 13:22:59 +0800 Subject: [PATCH] fix:Update message save remote extra method --- CHANGELOG.md | 4 +++- README.md | 2 +- lib/db/message.dart | 12 ++++++------ pubspec.yaml | 2 +- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56cfc4d..a5c11df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -73,4 +73,6 @@ ### 1.3.6 * fix: Add clear all channel red dots method ### 1.3.7 - * fix: Add send message can reminder member method \ No newline at end of file + * fix: Add send message can reminder member method + ### 1.3.7 + * fix: Update message save remote extra method \ No newline at end of file diff --git a/README.md b/README.md index d15b2df..4467372 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ #### 安装 ``` dependencies: - wukongimfluttersdk: ^1.3.7 + wukongimfluttersdk: ^1.3.8 ``` #### 引入 ```dart diff --git a/lib/db/message.dart b/lib/db/message.dart index 9ab2df4..3eac65d 100644 --- a/lib/db/message.dart +++ b/lib/db/message.dart @@ -638,12 +638,12 @@ class MessageDB { txn.insert(WKDBConst.tableMessageExtra, insertCVList[0], conflictAlgorithm: ConflictAlgorithm.replace); } - if (updateCVList.isNotEmpty) { - for (int i = 0; i < updateCVList.length; i++) { - txn.update(WKDBConst.tableMessageExtra, updateCVList[0], - where: "message_id=?", - whereArgs: [updateCVList[i]['message_id']]); - } + } + if (updateCVList.isNotEmpty) { + for (int i = 0; i < updateCVList.length; i++) { + txn.update(WKDBConst.tableMessageExtra, updateCVList[0], + where: "message_id=?", + whereArgs: [updateCVList[i]['message_id']]); } } }); diff --git a/pubspec.yaml b/pubspec.yaml index 2487bcc..57d3b4d 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.3.7 +version: 1.3.8 homepage: https://github.com/WuKongIM/WuKongIMFlutterSDK environment: