From 57d836fcb625b493928825172196799cb389702c Mon Sep 17 00:00:00 2001 From: anonymous Date: Tue, 14 Mar 2023 09:38:47 +0800 Subject: [PATCH] update flutter uikit to 1.7.1 --- CHANGELOG.md | 4 ++++ .../TIMUIKitTextField/tim_uikit_text_field.dart | 6 ++++-- lib/ui/views/TIMUIKitChat/tim_uikit_chat.dart | 1 + pubspec.yaml | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1b630d..8a6acde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.7.0+1 + +* Fix: An issue that caused errors on mentioning all members. + ## 1.7.0 * Addition: Support for quickly navigating to the first unread message in a group chat with more than 20 new unread messages, using the dynamic tongue located in the top right corner of the screen. This feature allows for swift movement through the messages, regardless of their quantity. diff --git a/lib/ui/views/TIMUIKitChat/TIMUIKitTextField/tim_uikit_text_field.dart b/lib/ui/views/TIMUIKitChat/TIMUIKitTextField/tim_uikit_text_field.dart index 02df70d..93b23eb 100644 --- a/lib/ui/views/TIMUIKitChat/TIMUIKitTextField/tim_uikit_text_field.dart +++ b/lib/ui/views/TIMUIKitChat/TIMUIKitTextField/tim_uikit_text_field.dart @@ -71,6 +71,8 @@ class TIMUIKitInputTextField extends StatefulWidget { final List customEmojiStickerList; + final String? groupType; + /// sticker panel customization final Widget Function( {void Function() sendTextMessage, @@ -98,7 +100,7 @@ class TIMUIKitInputTextField extends StatefulWidget { this.onChanged, this.isUseDefaultEmoji = false, this.customEmojiStickerList = const [], - required this.model}) + required this.model, this.groupType}) : super(key: key); @override @@ -569,7 +571,7 @@ class _InputTextFieldState extends TIMUIKitState { groupMemberList: model.groupMemberList, groupInfo: model.groupInfo, groupID: groupID, - groupType: conversationModel.selectedConversation?.groupType), + groupType: widget.groupType), ), ); final showName = _getShowName(memberInfo); diff --git a/lib/ui/views/TIMUIKitChat/tim_uikit_chat.dart b/lib/ui/views/TIMUIKitChat/tim_uikit_chat.dart index 7f4bbf1..27d3158 100644 --- a/lib/ui/views/TIMUIKitChat/tim_uikit_chat.dart +++ b/lib/ui/views/TIMUIKitChat/tim_uikit_chat.dart @@ -406,6 +406,7 @@ class _TUIChatState extends TIMUIKitState { : (widget.textFieldBuilder != null ? widget.textFieldBuilder!(context) : TIMUIKitInputTextField( + groupType: widget.conversation.groupType, model: model, controller: textFieldController, customEmojiStickerList: diff --git a/pubspec.yaml b/pubspec.yaml index 0d93290..0d7aa5b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: tencent_cloud_chat_uikit description: Chat UI components library and basic chat business logic for Tencent Cloud Chat, helping you build In-APP Chat module easily. -version: 1.7.0 +version: 1.7.0+1 homepage: https://www.tencentcloud.com/products/im?from=pub repository: https://github.com/TencentCloud/chat-uikit-flutter documentation: https://comm.qq.com/im/doc/flutter/en/TUIKit/readme.html