From 18396b08c8b279634641bd35c04dca477b315a04 Mon Sep 17 00:00:00 2001 From: SL Date: Mon, 5 Feb 2024 15:19:14 +0800 Subject: [PATCH] update query channel member avatar --- CHANGELOG.md | 4 +++- README.md | 2 +- lib/db/const.dart | 5 ++++- pubspec.yaml | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e206f16..1472f47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,4 +51,6 @@ ### 1.2.5 * Modifying the issue of disconnected sockets not being destroyed ### 1.2.6 - * update query message extra data \ No newline at end of file + * update query message extra data + ### 1.2.7 + * update query channel member avatar \ No newline at end of file diff --git a/README.md b/README.md index ea3f984..4755995 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ #### 安装 ``` dependencies: - wukongimfluttersdk: ^1.2.6 + wukongimfluttersdk: ^1.2.7 ``` #### 引入 ```dart diff --git a/lib/db/const.dart b/lib/db/const.dart index 546eb5c..4bff313 100644 --- a/lib/db/const.dart +++ b/lib/db/const.dart @@ -194,7 +194,10 @@ class WKDBConst { member.memberName = channelName; } member.remark = readString(data, 'channel_remark'); - member.memberAvatar = readString(data, 'avatar'); + String channelAvatar = readString(data, 'avatar'); + if (channelAvatar != '') { + member.memberAvatar = channelAvatar; + } String avatarCache = readString(data, 'avatar_cache_key'); if (avatarCache != '') { member.memberAvatarCacheKey = avatarCache; diff --git a/pubspec.yaml b/pubspec.yaml index a18633d..b737fba 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.2.6 +version: 1.2.7 homepage: https://github.com/WuKongIM/WuKongIMFlutterSDK environment: