v5.6.0-beta.3 - Optimistic DB Updates
Pre-releaseWhats New?
stream-chat dependency upgrade
stream-chatdependency has been upgraded to v8.1.2. Please check the changelog ofstream-chatfor details - https://github.com/GetStream/stream-chat-js/releases #1758
Sqlite dependency upgrade
react-native-quick-sqlitedependency has been been upgraded to v5. This will fix issue #1773. This is not a breaking change, since both v4 and v5 ofreact-native-quick-sqliteare supported #1758
Improve reactions UX
When user adds a reaction to message, SDK didn't update the UI until websocket event corresponding to that reaction wasn't received. This created a bad user experience (especially for slow networks), since user will need to wait for sendReaction api call to be completed and also will need to wait for websocket event for reaction.
This has been resolved, by optimistically adding the reaction to local database and local state of the UI. In case of bad network or failed api call, corresponding api call will be deferred till network is recovered. This works for both adding/updating/removing reaction. #1758 @vishalnarkhede
Improve new message UX
When the application is offline, user couldn't send a message which includes image/file attachments. The reason being, we need to wait for image/file attachments to be uploaded to CDN first, before attaching their CDN urls to message and sending a message.
This UX has been improved by allowing message to be added to message list irrespective of attachment upload status. Message related api call will be only made after uploading the attachment, but user won't have to wait for it to finish before pressing send button. #1758 @vishalnarkhede
react-native-document-picker dependency made optional
react-native-document-picker has been made optional. Document/file picker functionality won't be available if this dependency is not installed. 8b1eff9 @madsroskar
Bug Fixes
-
This issue is specific to apps which has auto translation feature enabled. When you have a channel active on your screen, and one of the messages get deleted by either current user or some other user, then that
particular message won't be replaced with "Message Deleted" text. This issue has been fixed now in commit 6b722dc -
appSettings was ignored in offline mode, since we never stored appSettings object in local database. This issue has been fixed now in commit 92decc8
Miscellaneous Changes
- Added ability to style underlying
BottomSheetFlatListwithinImageGrid, which is a image viewer in grid format. This style can be added to theme key -imageGallery.grid.container8411df9 @allenlinsh
If you have any questions or would like to report a bug, please mention it on following discussion thread: https://github.com/GetStream/stream-chat-react-native/discussions/1835