Repository navigation
v2.2.0
2.2.0
ChatAnimatedListRedesign:- Significantly overhauled for robust handling of asynchronous controller updates.
- The
updateoperation (ChatOperation.update) now requires theindexof the message to be updated.
- CRITICAL: When implementing custom
ChatControllers, you MUST now fetch the most up-to-date message instance from your data source before passing it toremoveorupdateoperations. The internal list now relies on the exact object reference. Failing to do so will lead to errors or unexpected behavior. (SeeInMemoryChatControllerfor an example of fetching the actual message before emittingChatOperation.removeorChatOperation.update).
✨ Key Enhancements & Fixes ✨
- Asynchronous Operations:
ChatAnimatedListnow uses an internal operation queue to serialize updates, preventing race conditions and resolving priorStreamOperationissues. - List Factorization: Common logic between normal and reversed
ChatAnimatedListinstances has been factorized, improving maintainability. - Bulk Insertions: Added
insertAllMessagestoChatControllerandChatAnimatedListfor efficient bulk message additions with animations. - Diffing & Stability:
ChatController'ssetMessagesnow uses an improvedDiffUtil(with move support), fixing "out of bounds" errors during complex list updates. - Data Consistency: The controller now fetches the latest message version before updates or deletions to ensure operations use current data.
- Bug Fixes:
- Testing: Introduced integration tests for
ChatAnimatedListto validate list operations and item positioning.
- FIX: update operation not persisted in the list (#778). (37472015)
- FEAT: Fix StreamOperation Async issues / create insertAll / fixInsert on reverted list (#756). (60395f9b)
2.1.3
2.1.2
- FIX: add audio message type. (8d2b705a)
2.1.1
- FIX: add video message type. (93a13840)