From c368196372d6bf961f8707c07a4cef9b9c5b1825 Mon Sep 17 00:00:00 2001 From: SL Date: Wed, 8 Nov 2023 11:11:21 +0800 Subject: [PATCH] update message reactions --- CHANGELOG.md | 4 +++- README.md | 2 +- example/pubspec.lock | 2 +- lib/db/reaction.dart | 3 ++- pubspec.yaml | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d44ea47..3e499ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,4 +33,6 @@ ### 1.1.6 * New features such as message likes and replies added ### 1.1.7 - * Modifying message parsing errors with reminder itemss \ No newline at end of file + * Modifying message parsing errors with reminder itemss + ### 1.1.8 + * Update message reactions \ No newline at end of file diff --git a/README.md b/README.md index 6987946..118980c 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ #### 安装 ``` dependencies: - wukongimfluttersdk: ^1.1.7 + wukongimfluttersdk: ^1.1.8 ``` #### 引入 ```dart diff --git a/example/pubspec.lock b/example/pubspec.lock index 5c9b64f..fa90256 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -499,7 +499,7 @@ packages: path: ".." relative: true source: path - version: "1.1.7" + version: "1.1.8" x25519: dependency: transitive description: diff --git a/lib/db/reaction.dart b/lib/db/reaction.dart index d044b75..d949e81 100644 --- a/lib/db/reaction.dart +++ b/lib/db/reaction.dart @@ -44,8 +44,9 @@ class ReactionDB { StringBuffer sb = StringBuffer(); for (int i = 0, size = messageIds.length; i < size; i++) { if (i != 0) { - sb.write("'"); + sb.write(","); } + sb.write("'"); sb.write(messageIds[i]); sb.write("'"); } diff --git a/pubspec.yaml b/pubspec.yaml index 88bcaaa..b4f68fb 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.1.7 +version: 1.1.8 homepage: https://github.com/WuKongIM/WuKongIMFlutterSDK environment: