diff --git a/CHANGELOG.md b/CHANGELOG.md index a486c98..def669f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -95,4 +95,6 @@ ### 1.4.7 * fix: Upgrade message protocol, add message extension topping function and the ability to send expired messages ### 1.4.8 - * fix: Upgrade send message api \ No newline at end of file + * fix: Upgrade send message api + ### 1.4.9 + * fix: Upgrade save channel member extra data api \ No newline at end of file diff --git a/lib/db/channel_member.dart b/lib/db/channel_member.dart index 1a54ad8..cc80516 100644 --- a/lib/db/channel_member.dart +++ b/lib/db/channel_member.dart @@ -1,3 +1,5 @@ +import 'dart:convert'; + import 'package:sqflite/sqflite.dart'; import '../entity/channel_member.dart'; @@ -150,6 +152,9 @@ class ChannelMemberDB { map['forbidden_expiration_time'] = member.forbiddenExpirationTime; map['created_at'] = member.createdAt; map['updated_at'] = member.updatedAt; + if (member.extraMap != null) { + map['extra'] = jsonEncode(member.extraMap); + } return map; } } diff --git a/pubspec.yaml b/pubspec.yaml index 0e82442..279c67f 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.4.8 +version: 1.4.9 homepage: https://github.com/WuKongIM/WuKongIMFlutterSDK environment: