Skip to content

Commit

Permalink
Update to version 4.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JcMinarro committed May 11, 2021
1 parent 5cc38a5 commit f5e62f5
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 39 deletions.
63 changes: 63 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,66 @@
# May 11th, 2021 - 4.10.0
## stream-chat-android-client
### 🐞 Fixed
- Fixed the usage of `ProgressCallback` in `ChannelClient::sendFile` and `ChannelClient::sendImage` methods.

### ✅ Added
- Added `ChannelClient::deleteFile` and `ChannelClient::deleteImage` methods.
- Added `NotificationInviteRejectedEvent`
- Added `member` field to the `NotificationRemovedFromChannel` event
- Added `totalUnreadCount` and `unreadChannels` fields to the following events:
- `notification.channel_truncated`
- `notification.added_to_channel`
- `notification.channel_deleted`
- Added `channel` field to the `NotificationInviteAcceptedEvent` event
- Added `channel` field to the `NotificationInviteRejectedEvent` event

### ⚠️ Changed
- **The client now uses a new serialization implementation by default**, which was [previously](https://github.com/GetStream/stream-chat-android/releases/tag/4.8.0) available as an opt-in API.
- This new implementation is more performant and greatly improves type safety in the networking code of the SDK.
- If you experience any issues after upgrading to this version of the SDK, you can call `useNewSerialization(false)` when building your `ChatClient` to revert to using the old implementation. Note however that we'll be removing the old implementation soon, so please report any issues found.
- To check if the new implementation is causing any failures in your app, enable error logging on `ChatClient` with the `logLevel` method, and look for the `NEW_SERIALIZATION_ERROR` tag in your logs while using the SDK.
- Made the `user` field in `channel.hidden` and `notification.invite_accepter` events non nullable.
- Updated channels state after `NotificationInviteRejectedEvent` or `NotificationInviteAcceptedEvent` is received

### ❌ Removed
- Removed redundant events which can only be received by using webhooks:
- `channel.created`
- `channel.muted`
- `channel.unmuted`
- `channel.muted`
- `channel.unmuted`
- Removed `watcherCount` field from the following events as they are not returned with the server response:
- `message.deleted`
- `message.read`
- `message.updated`
- `notification.mark_read`
- Removed `user` field from the following events as they are not returned with the server response:
- `notification.channel_deleted`
- `notification.channel_truncated`
## stream-chat-android-offline
### 🐞 Fixed
- Fixed an issue when CustomFilter was configured with an int value but the value from the API was a double value
### ⚠️ Changed

- Changed the upload logic in `ChannelController` for the images unsupported by the Stream CDN. Now such images are uploaded as files via `ChannelClient::sendFile` method.
### ❌ Removed

## stream-chat-android-ui-common
### ⬆️ Improved
- Updated ExoPlayer version to 2.13.3

### ⚠️ Changed
- Deprecated `MessageInputViewModel::editMessage`. Use `MessageInputViewModel::messageToEdit` and `MessageInputViewModel::postMessageToEdit` instead.
- Changed `MessageInputViewModel::repliedMessage` type to `LiveData`. Use `ChatDomain::setMessageForReply` for setting message for reply.
- Changed `MessageListViewModel::mode` type to `LiveData`. Mode is handled internally and shouldn't be modified outside the SDK.

## stream-chat-android-ui-components
### 🐞 Fixed
- Removed empty badge for selected media attachments.

### ✅ Added
- Added `messageLimit` argument to `ChannelListViewModel` and `ChannelListViewModelFactory` constructors to allow changing the number of fetched messages for each channel in the channel list.

# April 30th, 2021 - 4.9.2
## stream-chat-android-offline
### ✅ Added
Expand Down
42 changes: 4 additions & 38 deletions UNRELEASED_CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,78 +23,44 @@

## stream-chat-android-client
### 🐞 Fixed
- Fixed the usage of `ProgressCallback` in `ChannelClient::sendFile` and `ChannelClient::sendImage` methods.

### ⬆️ Improved

### ✅ Added
- Added `ChannelClient::deleteFile` and `ChannelClient::deleteImage` methods.
- Added `NotificationInviteRejectedEvent`
- Added `member` field to the `NotificationRemovedFromChannel` event
- Added `totalUnreadCount` and `unreadChannels` fields to the following events:
- `notification.channel_truncated`
- `notification.added_to_channel`
- `notification.channel_deleted`
- Added `channel` field to the `NotificationInviteAcceptedEvent` event
- Added `channel` field to the `NotificationInviteRejectedEvent` event

### ⚠️ Changed
- **The client now uses a new serialization implementation by default**, which was [previously](https://github.com/GetStream/stream-chat-android/releases/tag/4.8.0) available as an opt-in API.
- This new implementation is more performant and greatly improves type safety in the networking code of the SDK.
- If you experience any issues after upgrading to this version of the SDK, you can call `useNewSerialization(false)` when building your `ChatClient` to revert to using the old implementation. Note however that we'll be removing the old implementation soon, so please report any issues found.
- To check if the new implementation is causing any failures in your app, enable error logging on `ChatClient` with the `logLevel` method, and look for the `NEW_SERIALIZATION_ERROR` tag in your logs while using the SDK.
- Made the `user` field in `channel.hidden` and `notification.invite_accepter` events non nullable.
- Updated channels state after `NotificationInviteRejectedEvent` or `NotificationInviteAcceptedEvent` is received

### ❌ Removed
- Removed redundant events which can only be received by using webhooks:
- `channel.created`
- `channel.muted`
- `channel.unmuted`
- `channel.muted`
- `channel.unmuted`
- Removed `watcherCount` field from the following events as they are not returned with the server response:
- `message.deleted`
- `message.read`
- `message.updated`
- `notification.mark_read`
- Removed `user` field from the following events as they are not returned with the server response:
- `notification.channel_deleted`
- `notification.channel_truncated`

## stream-chat-android-offline
### 🐞 Fixed
- Fixed an issue when CustomFilter was configured with an int value but the value from the API was a double value

### ⬆️ Improved

### ✅ Added

### ⚠️ Changed
- Changed the upload logic in `ChannelController` for the images unsupported by the Stream CDN. Now such images are uploaded as files via `ChannelClient::sendFile` method.

### ❌ Removed

## stream-chat-android-ui-common
### 🐞 Fixed

### ⬆️ Improved
- Updated ExoPlayer version to 2.13.3

### ✅ Added

### ⚠️ Changed
- Deprecated `MessageInputViewModel::editMessage`. Use `MessageInputViewModel::messageToEdit` and `MessageInputViewModel::postMessageToEdit` instead.
- Changed `MessageInputViewModel::repliedMessage` type to `LiveData`. Use `ChatDomain::setMessageForReply` for setting message for reply.
- Changed `MessageListViewModel::mode` type to `LiveData`. Mode is handled internally and shouldn't be modified outside the SDK.

### ❌ Removed

## stream-chat-android-ui-components
### 🐞 Fixed
- Removed empty badge for selected media attachments.

### ⬆️ Improved

### ✅ Added
- Added `messageLimit` argument to `ChannelListViewModel` and `ChannelListViewModelFactory` constructors to allow changing the number of fetched messages for each channel in the channel list.

### ⚠️ Changed

### ❌ Removed
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ object Configuration {
const val compileSdkVersion = 29
const val targetSdkVersion = 29
const val minSdkVersion = 21
const val versionName = "4.9.2"
const val versionName = "4.10.0"
const val artifactGroup = "io.getstream"
}

0 comments on commit f5e62f5

Please sign in to comment.