diff --git a/CHANGELOG.md b/CHANGELOG.md index 960b963..fcf3d4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ ## 0.0.2 -- Add support for update message +* **Feat**: [18](https://github.com/SimformSolutionsPvtLtd/chatview_utils/pull/18) Added + `updateMessage()` method in `ChatController` to update existing messages. +* **Feat**: [17](https://github.com/SimformSolutionsPvtLtd/chatview_utils/pull/17) Added + `loadMoreData()` method in `ChatController` to fetch older or new messages. +* **Feat**: [19](https://github.com/SimformSolutionsPvtLtd/chatview_utils/pull/19) Introduced + `ChatViewListController`to support `ChatViewList` widget for managing chat list operations like + add, remove and update chat with animated UI, search functionality, and pagination. ## 0.0.1 diff --git a/lib/src/controller/chat_list_controller.dart b/lib/src/controller/chat_list_controller.dart index 7d3709d..34eba21 100644 --- a/lib/src/controller/chat_list_controller.dart +++ b/lib/src/controller/chat_list_controller.dart @@ -76,6 +76,12 @@ base class ChatViewListController { /// So the order of in UI and from this will be different. List get chatList => _chatListMap.values.toList(); + /// Provides map of all chats in the chat list. + /// + /// **Note**: If a search is active, this will return the full chat map, + /// not the search results. And this map will be unsorted. + Map get chatListMap => _chatListMap; + bool get isSearching => _searchResultMap != null; /// Stream controller to manage the chat list stream.