# TypeScript

## **Version 7.8.4 (2025-08-13)**

### Fixes:

* Incorrect default value of `resolveParent` parameter on `queryGlobalFeed()` function.

### Compatibility:

* NodeJS >= v12
* NPM >= v6<br>

***

## **Version 7.8.0 (2025-07-18)**

### New Features:

* Ability to delete message with status 'failed'
* Introduce LiveReactionRepository includes the APIs related to livestream reaction
* Introduce createReaction api in LiveReactionRepository in order to create reaction to a livestream
* Introduce getReactions api in in LiveReactionRepository in order to observe reactions created to a livestream
* Introduce getLiveChat property in Amity.Stream object in order to get the live chat channel linked with a stream
* Introduce getMyMembership in Amity.Channel in order to observe current's user membership
* Introduce getLivestreamInfo in Amity.Post
* Introduce getPollInfo in Amity.Post
* Support new param called `channelEnabled` when create a stream

### Breaking Changes:

* Stream watcher url has been changed to null

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## **Version 7.7.0 (2025-07-11)**

### New Features:

* Introduced a new `dataType = clip`
* Introduced a new `attachments` structure for creating clip post attachments
* Introduced a new API `queryPosts`
* Introduced a new API `uploadClip`

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## **Version 7.6.0 (2025-06-20)**

### New Features:

**Community Membership Acceptance**

* Introduce network level settings to control whether new members are added automatically or must be invited.
* Introduce invite API enabling moderators to invite users to join communities.&#x20;

**Discoverable Private Communities**&#x20;

* Introduce `isDiscoverable` property on community enabling private communities to be discoverable through through community query APIs.

**Requires Join Approval Communities**&#x20;

* Introduce `requiresJoinApproval` property on community indicating whether `joinCommunity()` will automatically add users to the community or create a join request to be reviewed.

**Channel Member Preview**

* Provide access to `previewMembers` on `AmityChannel` that are conversation type.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## **Version 7.5.3 (2025-06-13)**

### Fixes:

* Duplicated local reaction values.
* Decouple unread count syncing from login flow.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## **Version 7.5.2 (2025-06-12)**

### Fixes:

* Enable IDE to infer Amity.Post type on getPost() and getPosts().

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## **Version 7.5.1 (2025-06-11)**

### Fixes:

* getTotalChannelsUnread() does not update due to racing conditions.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## **Version 7.5.0 (2025-05-22)**

### New Features:

* Added a new parameter `reason` in `flagMessage` for adding a reason when reporting messages.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## **Version 7.4.0 (2025-05-09)**

### New Features:

* Introduced a new API `updateAltText` for providing an alt text.
* Added a new parameter `altText` in `uploadImage` for providing an alt text.
* Added a new parameter `reason` in `flagPost` and `flagComment` for adding a reason when reporting posts and comments.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## **Version 7.3.0 (2025-04-25)**

### New Features:

* Introduced abilities to query notification tray items, mark notification tray as seen, and mark notification tray item as seen.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## **Version 7.2.0 (2025-04-11)**

### New Features:

* Introduced `unreadCount` field in `Amity.Channel` .
* Introduced `getTotalChannelsUnread` API in `ChannelRepository`to retrieve the total unread count from previously fetched channels.

### **Fixes**:

* Optimized file upload performance.
* Fixed the number of replies in a live collection is not updated after a reply was deleted.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## **Version 7.1.0 (2025-03-31)**

### **Fixes**:

* Fixed `add/remove reaction` and `get reactions` to allow only if the reference type is `post`, `comment`, `message`, or `story`.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## **Version 7.0.2 (2025-03-21)**

### **Fixes:**

* Fixed an issue where a story could not be marked as viewed if the expiration time exceeded 24 hours.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## **Version 7.0.1 (2025-03-14)**

### **New Feature:**

* Introduced a new client API to fetch URL preview (`Client.fetchLinkPreview`).

### **Fixes:**

* Fixed duplicate image bug in chat.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## **Version 7.0.0 (2025-03-06)**

### New Features:

* Introduced the latest SDK version 7.
* Removed deprecated APIs.
* Removed legacy APIs.
* Moved live stream event from `WebSocket` to `MQTT`.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## Version 6.36.0 (2025-03-6)

### **Fixes:**

* Fixed `RTE` connection is not being maintained in background mode.

### Breaking Changes:

* Introduced a new client API `onRTEConnectionChange` to get the current `mqtt` connection state.

### Compatibility:&#x20;

* NodeJS >= v12&#x20;
* NPM >= v6

***

## **Version 6.35.2 (2025-02-21)**

### **Fixes:**

* Fixed `TypeError: Cannot convert undefined or null to object` in the `createMessage` method.

### **Compatibility:**

* NodeJS >= v12
* NPM >= v6

***

## **Version 6.35.0 (2025-02-14)**

### **New Features:**

* Introduced `rteEnabled` option in `createClient` API. The default value is set to `true`.

### **Fixes:**

* Fixed `getGlobalStoryTargets` API, which was not returning targets with failed stories.

### **Compatibility:**

* NodeJS >= v12
* NPM >= v6

***

## **Version 6.34.0 (2025-01-31)**

### **New Features:**

* Introduced missing fields to the `Amity.Message` model for Chat Linked Object.
* Introduced Intelligent Search for communities.
* Introduced improved search logic for all customers.

### **Compatibility:**

* NodeJS >= v12
* NPM >= v6

***

## **Version 6.33.1 (2025-01-24)**

### **New Features:**

* Introduced Partial User Search.
* Introduced a new `matchType` enum for the `searchUserByDisplayName` API.

### Compatibility:&#x20;

* NodeJS >= v12
* &#x20;NPM >= v6

***

## **Version 6.33.0 (2025-01-17)**

### **New Features:**

* Introduced `Global Featured Post`.
* Introduced `matchType` parameter for the `searchUserByDisplayName` API.

### **Fixes:**

* Fixed an issue where `isJoined` was missing in the `Amity.Community` object after community events were triggered.
* Fixed an issue where `postSetting` was missing in the `Amity.Community` object when a community was fetched before fetching the global feed.
* Fixed an issue where the `Blocked User Live Collection` did not update when a user was unblocked.
* Fixed caching issues where the `Follower User Live Collection` and `Following User Live Collection` used the same cache key.
* Fixed an issue where the `Reaction` and `myReaction` fields in the `Amity.Story` object was not updated on current user actions.

### Compatibility:&#x20;

* NodeJS >= v12
* &#x20;NPM >= v6

***

## **Version 6.32.5 (2025-01-15)**

### **Fixed:**

* Fixed an issue where a newly created channel or a channel with a new message was not added to the first position in the channel live collection.
* Fixed an issue where the unread count did not update in certain channels.

### Compatibility:&#x20;

* NodeJS >= v12
* &#x20;NPM >= v6

***

## **Version 6.32.3 (2024-12-20)**

### **Fixes:**

* Fixed an issue where the `unreadCount` in the channel object did not update after a user sent a message in the channel.

### Compatibility:&#x20;

* NodeJS >= v12
* &#x20;NPM >= v6

***

## **Version 6.32.2 (2024-11-05)**

### **Fixes:**

* Fixed an issue where the `myReaction` field on `Post` and `Comment` would disappear after updating the post or comment.

### Compatibility:&#x20;

* NodeJS >= v12
* &#x20;NPM >= v6

***

## **Version 6.32.1 (2024-11-04)**

### **Fixes:**

* Updated the `Axios` client within the SDK to exclude cookie-based authorization.

### Compatibility:&#x20;

* NodeJS >= v12
* &#x20;NPM >= v6

***

## **Version 6.32.0 (2024-10-25)**

### **New Features:**

* Introduced the ability to check `CREATE_PRIVILEGED_POST` permission in the community.

### Compatibility:&#x20;

* NodeJS >= v12
* &#x20;NPM >= v6

***

## **Version 6.31.1 (2024-10-17)**

### **New Features:**

* Introduced the fields `targetId`, `targetType`, `referenceId`, and `referenceType` in `Amity.Stream`.
* Introduced linked objects: `community`, `post`, and `user` in `Amity.Stream`.
* Introduced the `prefixDeviceIdKey` option to be passed when creating an SDK client.

### Compatibility:&#x20;

* NodeJS >= v12
* &#x20;NPM >= v6

***

## Version 6.31.0 (2024-10-10)

### Fixes:

* Fixed an issue where the `readCount` field in `Amity.Message` was not updated while observing the live collection of messages.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## Version 6.30.4 (2024-10-04)

### Fixes:

* Fixed an issue where users could not report posts and comments using the `createReport` API.
* Fixed an issue where users could not un-report posts and comments using the `deleteReport` API.
* Fixed an issue where `isReportedByMe` could not be used to check if the post and comment were reported by the current user.

### Compatibility:

* NodeJS >= v12&#x20;
* NPM >= v6

***

## Version 6.30.3 (2024-09-19)

### **Fixes:**

* Fixed excessive marker requests triggered on channel actions.

### **Compatibility:**

* NodeJS >= v12
* NPM >= v6

***

## Version 6.30.2 (2024-09-19)

### Fixes:&#x20;

* Fixed an issue where `matchingOnlyParentPost` in semantic search defaulted to `true`.
* Fixed multiple callbacks sending double responses for semantic search; it should now only send one.
* Fixed missing data in the first response.&#x20;

### Compatibility:

* NodeJS >= v12&#x20;
* NPM >= v6

***

## Version 6.30.1 (2024-09-10)

### Fixes:

* Fixed an issue where the last created message was lost in the `live collection` after fetching the collection again.

### Compatibility:

* NodeJS >= v12&#x20;
* NPM >= v6

***

## Version 6.30.0 (2024-08-30)&#x20;

### New Features:&#x20;

* Introduced the `includeDeleted` parameter for `getMembers` and `searchMembers` methods in the `ChannelRepository.membership` and `CommunityRepository.membership` classes. By default, `includeDeleted` is set to `true`.

### **Fixes:**

* Fixed an issue with error handling when fetching pinned posts.
* Fixed an issue with optimistic updates for comments, posts, and reactions.

### Compatibility:&#x20;

* NodeJS >= v12&#x20;
* NPM >= v6

***

## Version 6.29.2 (2024-08-16)

### Fixes:

* Fixed an issue where the current user's message remained visible in the live collection after deletion.

### Compatibility:&#x20;

* NodeJS >= v12&#x20;
* NPM >= v6

***

## Version 6.29.1 (2024-07-24)

### Fixes:

* Fixed an issue where querying channels by partially matching on `displayName` was not functioning correctly.

### Compatibility:&#x20;

* NodeJS >= v12&#x20;
* NPM >= v6

***

## Version 6.29.0 (2024-07-12)

### New Features:

* Added the capability to monitor SDK network activities - [logging](https://docs.social.plus/social-plus-sdk/core-concepts/logging "mention").

### Compatibility:&#x20;

* NodeJS >= v12&#x20;
* NPM >= v6

***

## Version 6.28.2 (2024-07-09)

### Fixes:

* Fixed the issue where posts were using the same cache despite having different parameters.

### Compatibility:&#x20;

* NodeJS >= v12&#x20;
* NPM >= v6

***

## Version 6.28.0 (2024-07-08)

### New Features:

* Updated the `FileRepository` to support secure files.

### Compatibility:&#x20;

* NodeJS >= v12&#x20;
* NPM >= v6

***

## Version 6.27.0 (2024-06-21)

### New Features:

* Introduced Ad analytics. For more information please visit [Ads](https://docs.amity.co/amity-sdk/core-concepts/ads).

### Fixes:

* Fixed missing creator field from real-time events `getPost()`.

### Compatibility:&#x20;

* NodeJS >= v12&#x20;
* NPM >= v6

***

## Version 6.26.2 (2024-06-11)

### Fixes:

* Fixed the issue where comments could not be queried.

### Compatibility:&#x20;

* NodeJS >= v12&#x20;
* NPM >= v6

***

## Version 6.26.1 (2024-06-11)

### Fixes:

* Fixed the issue of undefined data showing after deleting a comment.

### Compatibility:&#x20;

* NodeJS >= v12&#x20;
* NPM >= v6

***

## Version 6.26.0 (2024-06-07)

### Fixes:

* Fixed story upload issue on the `Android platform` (React Native).&#x20;
* Fixed parameters for `registerPushNotification()` (React Native).

### Compatibility:&#x20;

* NodeJS >= v12&#x20;
* NPM >= v6

***

## Version 6.25.2 (2024-05-30)

### Fixes:

* Fixed incorrect display of usernames in the web chat room.

### Compatibility:

* NodeJS >= v12&#x20;
* NPM >= v6

***

## Version 6.25.1 (2024-05-24)

### New Features:

* Introduced Livestream Moderation.

### Fixes:

* Fixed the issue where the live collection for the reaction repository did not update in real-time.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## Version 6.24.1 (2024-05-15)

### New Features:

* Implemented `CommunityRepository.searchCommunities` and `CommunityRepository.Membership.searchMembers`

### Fixes:

* Resolved an issue where the unread count did not update correctly when a user sent a message.
* Corrected the incorrect children count after creating a comment.
* Implemented real-time updates for comment counts.
* Fixed the issue where a file name changed when uploading a file with a Thai name.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## Version 6.23.0 (2024-04-26)

### **New Features:**

* Introduce a `markAsRead` method in the channel object to mark a channel as read.

### **Fixes:**

* Real-time updates for sub-channel unread counts are now implemented.
* Corrected an issue where the current user would receive an unread count update when they sent a message.

### **Deprecate:**

* Deprecated the `markAsRead` API in `ChannelRepository`.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## Version 6.22.0 (2024-04-12)

### New Features:

* Introduce `secureLogout()` function, enabling revoking of accessToken upon logout.

### Fixes:

* PostRepository.getPost() creator field is missing when added or removed reaction.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## Version 6.19.0 (2024-03-06)

### Fixes:

* Fixed when a channel does not appear in the collection after sending a message if that channel is not currently included in the live collection.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## Version 6.18.0  (2024-02-24)&#x20;

### New Features:

Implement consistent message unread count for channels & subchannels - for further information please visit - [sdk-v6.26.0-unread-count-migration-guide](https://docs.social.plus/developers/migration-guides/sdk-v6.26.0-unread-count-migration-guide "mention").

* New `enableUnreadCount()` method which enables unread count feature for messages -&#x20;
* New `syncUnreadCount()` method in `Client` - [unread-count](https://docs.social.plus/social-plus-sdk/chat/channels/unread-count "mention").
* New `subChannelsUnreadCount` property in `AmityChannel`
* New `startMessageReceiptSync()` & `stopMessageReceiptSync()` methods in `AmitySubChannelRepository` - [observe-reading-count](https://docs.social.plus/social-plus-sdk/chat/channels/unread-count/observe-reading-count "mention").
* New `markRead()` method in AmityMessage -  [mark-message-as-read](https://docs.social.plus/social-plus-sdk/chat/channels/unread-count/mark-message-as-read "mention").

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## Version 6.17.1 (2024-02-01)

### Fixes:

* Fixed the issue where unread count doesn't get updated properly in channels.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## Version 6.17.0 (2024-01-25)

### Fixes:

* Fixed the issue where removing a child post did not update in the parent post's live collection.
* Fixed the issue where `messagePreviewId` becomes null when a user leaves a channel.
* Updated functionality to add new child comments to an existing parent comment.
* Fixed the issue of `myReaction` missing from posts and comments.
* Improved functionality to search by `commentId`.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## Version 6.16.0 (2024-01-16)

### Fixes:

* Fixed isJoined is disappeared after create and delete a post.
* Fixed unreadCount is not updated after startReading on subChannel live collection.
* Added missing isSeen and hasUnseen flag in Story .
* Export social settings functions to the public.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## Version 6.14.0 (2023-12-01)

### New Features:

* Enhanced message live collection performance and stablity.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## Version 6.13.2 (2023-11-23)

### Fixes:&#x20;

* Fixed the issue where next page of `getChannels` live collection couldn't be called&#x20;
* Fixed the issue where next page of `getUsers` live collection couldn't be called&#x20;

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## Version 6.13.1 (2023-11-20)

### Fixes:&#x20;

* Fixed the issue where next page of `getComments` live collection couldn't be called&#x20;

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## Version 6.13.0 (2023-11-17)

### New Features

* Added a new feature for SDK to collect and view data of post interaction. For more information, please visit [post-impression](https://docs.social.plus/social-plus-sdk/social/posts/post-impression "mention").

### Fixes

* Fixed the issue of isReportedByMe doesn't return a result.
* Fixed no response from observe following follower.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## Version 6.12.0 (2023-11-03)

### New Features

* Added new feature to preview latest message sent in channel or subchannel. For more information, please visit [message-preview](https://docs.social.plus/social-plus-sdk/chat/channels/message-preview "mention").

### Fixes

* Fixed the issue of post filtering error.
* Fixed the issue to mark channel as read to clear unreadCount.
* Fixed the issue of community channel type.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## Version 6.11.0 (2023-10-20)

### Fixes

* Fixed the issue where more than 5 comments could not be retrieved.
* Fixed the issue of sub-channel pagination.
* Fixed the issue where there was no response when flagging a comment.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## Version 6.10.0 (2023-10-10)

### Fixes

* Fix various bugs in comments.
* Fix channel not re-ordering when got a new message.

### Compatibility:

* NodeJS >= v12
* NPM >= v6

***

## Version 6.9.0 (2023-09-22)

### Fixes

* Fixed an issue where unread count doesn't get updated in real-time in certain situations.
* Improved authentication performance.

## Version 6.8.2 (2023-09-19)

### Fixes

* Fixed an issue in the `MessagesRepository.getMessages` function where the results were incorrectly sorted in certain situations.
* Fixed an issue in the `MessagesRepository.getMessages` function where results became mixed when using two message live collections simultaneously.
* Fixed the `CommentRepository.getComments` function, which was always including replied comments at the same level as parent comments.

## Version 6.8.1 (2023-09-13)

### Fixes

* Fixed the issue where deviceId is not unique among SDK session.

## Version 6.8.0 (2023-09-08)

#### New Features

* Introduced `hasMentioned` field in `Amity.Channel`.
* Introduced `hasMentioned` field in `Amity.SubChannel`.
* Introduced `userUnread: Amity.UserUnread` property in `Amity.Client` to `get unreadCount` and `hasMentioned` value.
* Enhanced the Comments API Response to return community users' roles.

#### Fixes

* Fixed the missing 'Read' status on some messages in 1-1 chat.
* Fixed the issue where onNextPage() cannot be called on multiple channel live collections.
* Fixed the issue where subChannel was not re-ordered after receiving a new message.
* Fixed the issue of calling multiple get channel marker requests after creating a new channel.
* Fixed the issue where onNextPage() cannot be called on multiple message live collections.
* Fixed notification message is empty when sent a messgage from TypeScript SDK.
* Fixed the missing 'Read' status on some messages in 1-1 chat.
* Prevented excessive unread sync requests in some situations.

## Version 6.7.2 (2023-09-04)

### Fixes

* Fixed missing "read" status on some messages.
* Fixed the issue where live collections were unable to call onNextPage on multiple collections.

## Version 6.7.0 (2023-08-25)

### Fixes

* Fixed pagination for sub-channels.
* Resolved a message order issue.
* Fixed the issue with sub-channel sorting not updating after receiving a message.

## Version 6.6.0 (2023-08-10)

### Features

* Updated the logic for `PostRepository.delete()` to guarantee the cache's permanent removal in the case of a hard delete. Also, limited `PostRepository.getPosts()` to exclude all deleted posts (both soft and hard deletes) not owned by the logged-in user, aligning with this[#behavioral-change-announcement](#behavioral-change-announcement "mention").

### Fixes

* Fixed the issue of missing parameter, `referenceVersion` , in reaction query.

## Version 6.5.5 (2023-08-02)

### Fixes

* Fixed the issue where we could not see the users' reacted list with the message in the topic, and the backend returned '`MessageId` not found.' However, the reaction count showed the correct number of reactions.

## Version 6.5.4 (2023-07-27)

### Fixes

* In version 6.5.2, we fixed a bug related to missing reactions in posts. Despite resolving this in most cases, some specific scenarios were still affected. With this release, we have addressed the remaining issues, ensuring that reactions will be displayed correctly in all situations.

## Version 6.5.3 (2023-07-26)

### Fixes

* Fixed the issue with reactions where users are unable to see who reacted to the message.

## Version 6.5.2 (2023-07-24)

### Fixes

* Fixed the issue where `myReactions` in the post were incorrect. When the user re-initializes a new collection, `myReactions` are correct for the first `getPosts(..)` call. However, they become incorrect again once another user likes the post.

## Version 6.5.1 (2023-07-20)

### Fixes

* Fixed the issue where searching for communities by `displayName` was not working.
* Fixed the issue where searching for users by `displayName` returned mixed-up and incorrect data.

## Version 6.4.6 (2023-07-14)

### New Features

Stream Repository

* Introduced `StreamRepository.getStream()` Live Object API.
* Introduced `StreamRepository.getStreams()` Live Collection API.

Community Repository

* Introduced `CommunityRepository.getCommunity()` Live Object API.
* Introduced `CommunityRepository.getCommunities()` Live Collection API.
* Introduced `CommunityRepository.getTrendingCommunity()` Live Collection API.
* Introduced `CommunityRepository.getRecommendedCommunities()` Live Collection API.

Channel Repository

* Introduced `ChannelRepository.Membership.getMembers()` Live Collection API.

Post Repository

* Introduced `PostRepository.getPost()` Live Object API.
* Introduced `PostRepository.getPosts()` Live Collection API.

Poll Repository

* Introduced `PollRepository.getPoll()` Live Object API.

Comment Repository

* Introduced `CommentRepository.getComment()` Live Object API.
* Introduced `CommentRepository.getComments()` Live Collection API.

### Fixes

Stream Repository

* Made cache key unique per request params in getStreams.

## Version 6.4.5 (2023-07-04)

### Fixes

* Fixed the issue where the unread count does not sync when two devices, both using the same account, are opened simultaneously.

## Version 6.4.3 (2023-06-22)

### Fixes

* Resolved an issue, ensuring that the comment model accurately updates myReaction when adding or removing a reaction.
* Resolved an issue, ensuring that the comment model accurately updates myReaction when adding a new reaction and re-querying the comment.

## Version 6.4.2 (beta) (2023-06-21)

### New Features

* Introduce a new feature which now supports unread count on multiple devices. When the user logs in to two devices with the same account and uses the chat feature simultaneously, the user should see the correct update of the unread count.&#x20;

### Fixes

* Fixed after subscribing to the real-time comment event, the reaction should reflect in Live Objects and Live Collections correctly, ensuring that it increases and decreases normally.

## Version 6.4.0 (2023-06-16)

### Fixes

* Fixed an issue where the SDK shared the same message result on MessageRepository.getMessages, even with different page sizes.
* Rectified inaccurate search results when searching for users and communities.

## Version 6.3.2 (2023-06-13)

### Fixes

* Fix the issue where the latest messages or chat lists are not displayed in real-time. The page needs to be refreshed to see the updates.

## Version 6.3.1 (2023-06-01)

### Fixes

* Fix post live collection does't trigger callback again on re-initialize.

## Version 0.0.1 Beta.45 (2023-06-01)

### Fixes

* Fix post live collection does't trigger callback again on re-initialize.

## Version 6.2.0 (2023-05-18)

### New features

* Introduce ban/unban community member.

### Fixes

* Fix user objects are not returned when searching with display name.
* Fix post is not disappeared in real-time when performing hard delete.
* Fix sometimes `ChannelRepository.Membership.getMembers` returns null.

## Version 6.1.0 (2023-05-9)

### New features

* Introduce mute/unmute channel.

### Fixes

* Remove unused warnings (`runQuery` deprecations).
* Fix sometimes message and channel collections return empty.&#x20;

## <mark style="color:orange;">Version 6.0.0-beta01</mark> (2023-05-5)

### New features

* Introduce message delivered count.
* Introduce mark all messages in a channel as read
* For further information please visit [unread-count](https://docs.social.plus/social-plus-sdk/chat/channels/unread-count "mention").

## Version 6.0.0 (2023-04-27)

### New features

* Introduce[ blocking/unblocking user](https://docs.social.plus/social-plus-sdk/social/block-and-unblock-user) feature.

### Breaking Changes

* Refer to [v6.0.0 Migration Guide](https://docs.social.plus/developers/migration-guides/ts-sdk-v6.0.0-migration-guide) for more details.

## Version 0.0.1 Beta.43 (2023-04-11)

### New Features

* Introduce [unread count](https://docs.social.plus/social-plus-sdk/chat/channels/unread-count) in channels and subchannels.

## Version 0.0.1 Beta.42.3 (2023-04-05)

### Fixes

* Fixed an issue where Live collections including `liveMessage`, `liveChannels`, `livePosts` , and `liveComments` do not get updated immediately once the new item is created in to the collection.

## Version 0.0.1 Beta.42.1 (2023-03-28)

### New Features

* introduced Live Object for `liveGetMyFollowInfo` method.&#x20;
* `liveGetFollowInfo` now returns more data, including the follow status between the target user and the SDK method caller. You can learn more about this update [here](https://docs.amity.co/social/follow-unfollow/get-follow-status-and-connection-counter#get-other-user-follow-information).&#x20;

### Fixes&#x20;

* fixed the issue when calling `liveMessages` for the second time and return an empty result.

## Version 0.0.1 Beta.41 (2023-03-23)

### Fixes

* Fixed an issue where creating a message was returning a parameters validation error
* Fixed an issue where the authentication token wasn't able to be renewed when it's about to expire or has expired &#x20;

## Version 0.0.1 Beta.40 (2023-03-13)

### New Features

* Introduced functionality to [create](https://docs.social.plus/social/comments/create-comment#create-comment-with-image), [update](https://docs.social.plus/social/comments/edit-comment#update-comment-with-image), and [query](https://docs.social.plus/social/comments/query-comment#query-comment-with-image) image comments.
* Introduced Live Object for the [Live Community Objects](https://docs.social.plus/core-concepts/live-objects-collections/typescript-live-objects-collections#community-objects-collection). With `liveCommunity`, any changes made to the community object are immediately reflected, without the need for the user to manually refresh or update the object.
* Introduced [Live Community Members](https://docs.social.plus/core-concepts/live-objects-collections/typescript-live-objects-collections#community-members-collection). Any real-time event data changes to a collection of community members will immediately be reflected in the collection without the need for users to query the server again for the latest data.

## Version 0.0.1 Beta.39 (2023-02-24)

### New Features

* Enhanced [liveUsers](https://docs.social.plus/social-plus-sdk/changelogs-and-versioning/broken-reference) functionality to query users by query parameters such as `displayName`, `lastCreated` and `firstCreated`.

### Fixes

* Fixed issue where a post was not being added to the review feed when a previously published post was updated.
* Fixed issue where the member count was not automatically updated after joining a live channel.

## Version 0.0.1 Beta.38 (2023-02-09)

### New Features

* Enhanced [Live Collection](https://docs.social.plus/social-plus-sdk/core-concepts/live-objects-collections/typescript-live-objects-collections) with Post, Comments, Community and Community Category collection. Newly created Posts, Comments, Communities, and Community Categories are now automatically reflected in their respective collections, providing real-time updates.

## Version 0.0.1 Beta.37 (2023-02-03)

### New Features

* Introduced [Session State Management](https://docs.social.plus/social-plus-sdk/core-concepts/session-state) to describe the authentication status of the client device.

### Fixes

* Fixed issue where the device status was not changed to '`established`' after the token expired.
* Fixed issue where the user could not filter the channel by "member" and the removed channel was still shown in the collection after removal.
* Fixed issue where the SDK did not subscribe to the global ban event.
* Fixed issue where the user adds a new post but it is not linked to the user who created it.

## Version 0.0.1 Beta.36 (2023-01-13)

### New Features

* Introduced [Sub Channel](https://docs.social.plus/social-plus-sdk/chat/channels/subchannel) functionality. Now users can create sub channels inside a channel.

### Breaking Changes

* Replaced `channelId`, `data` parameters with `subChannelId`, `dataType` for `createMessage`, `queryMessages`, `liveMessages`

before:

```javascript
const query = createQuery(createMessage, {
  channelId,
  data: 'text',
  ...
});

const query = createQuery(queryMessages, {
  channelId,
  ...
});

const unsubscribe = liveMessages({ channelId }, callback);
```

starting 0.0.1 Beta.36:

```javascript
const query = createQuery(createMessage, {
  subChannelId,
  dataType: 'text',
  ...
});

const query = createQuery(queryMessages, {
  subChannelId,
  ...
});

const unsubscribe = liveMessages({ subChannelId }, callback);
```

* `fileId` for file, image, video, audio messages is moved from `message.fileId` to `message.data.fileId`
* Before, messages were sent into the channel. Now, messages are sent into the sub channels of the channel. Each channel has at least one sub channel, the main one, where all old messages were migrated. To keep querying, creating messages in the same space use `channel.defaultSubChannelId` for `subChannelId` parameter for `createMessage`, `queryMessages`, `liveMessages`

before:

```javascript
const unsubscribe = liveMessages({ channelId: channel.channelId }, callback);
```

starting 0.0.1 Beta.36:

```javascript
const unsubscribe = liveMessages({ subChannelId: channel.defaultSubChanneld }, callback);
```

* to receive real time updates for channel of type `broadcast`, `live`, it's sub channels and messages (keep `liveMessages` working) you need manually to subscribe for them

```javascript
import { getChannelTopic, subscribeTopic } from '@amityco/ts-sdk';

let unsubscribe;

runQuery(
  createQuery(getChannel, 'channelId'),
  ({ data: channel, loading, error }) => {
    if (loading && error) {
      return;
    }
    
    unsubscribe = subscribeTopic(getChannelTopic(channel));
  },
);
```

## Version 0.0.1 Beta.35 (2022-12-16)

### Fixes

* SDK Upgrade

## Version 0.0.1 Beta.34 (2022-12-02)

### New Features

* Introduced ability to query community [users](https://docs.social.plus/core-concepts/user#description-of-users) and receive "user object".
* Introduced the ability to support [startReading and stopReading](https://docs.social.plus/chat/channels/query-members#reading-status-and-unread-count) functionalities in a channel.

### Fixes

* Fixed issue where unread messages did not show the correct number.

## Version 0.0.1 Beta.33 (2022-11-18)

### New Features

* Upgraded the [post review](https://docs.social.plus/social-plus-sdk/social/posts/post-review) feature. When a moderator role is demoted to a user role, post creation must be approved by a moderator.

## Version 0.0.1 Beta.32 (2022-11-04)

### New Features

* Introduced the ability for User roles to create community with “Admin can post only” [settings](https://docs.social.plus/social-plus-sdk/changelogs-and-versioning/broken-reference).

### Fixes

* Fixed issue where the user could not remove reaction from the message.

## Version 0.0.1 Beta.31 (2022-10-21)

### New Features

* Introduced the ability for the [channel moderator](https://docs.social.plus/chat/channels/query-members#roles-and-permission) to promote a user/member to moderator.
* Introduced the ability for the [channel moderator](https://docs.social.plus/chat/channels/query-members#roles-and-permission) to demote a moderator to a user/member.
* Introduced the ability to [query](https://docs.social.plus/social-plus-sdk/changelogs-and-versioning/broken-reference) poll type.
* Introduced ability to [query message](https://docs.social.plus/social-plus-sdk/chat/messaging/query-and-filter-messages) by type.
* Introduced ability to [remove or add a new video](https://docs.social.plus/social-plus-sdk/social/posts/edit-post) in existing post.
* Introduced ability to [query `liveChannels`](https://docs.social.plus/social-plus-sdk/chat/channels/query-channels) using `filter` query parameters.
* Introduced [`liveMessage`](https://docs.social.plus/social-plus-sdk/changelogs-and-versioning/broken-reference) and [`liveUser`](https://docs.social.plus/social-plus-sdk/changelogs-and-versioning/broken-reference). Now users can monitor the status of a single message, post or user if they are subscribed.

### Fixes

* Fixed issue where querying the Live channel membership filter after muting was not possible.

## Version 0.0.1 Beta.30 (2022-10-07)

### New Features

* Enhanced [Live Collections](https://docs.social.plus/core-concepts/live-objects-collections/typescript-live-objects-collections#channel-member-collection) for Channel Member collections. Any member added to or removed from a channel is automatically included in the query collection.
* Introduced ability to create [video messgaes](https://docs.social.plus/social-plus-sdk/chat/messaging/send-a-message/video-message) in Live, Broadcast, Community and Chat channels.
* When creating a [poll post](https://docs.social.plus/social-plus-sdk/social/posts/create-post/poll-post), the `closedIn` value is set to 30 days by default if the user does not set any value.

## Version 0.0.1 Beta.29 (2022-09-23)

### New Features

* Introduced ability to manage [community post settings](https://docs.social.plus/social-plus-sdk/changelogs-and-versioning/broken-reference) via SDK (i.e. 'Only Admins Can Post' or 'Approve Member Posts')

### Fixes:

* Non-members with the User role can no longer be able to get information about the conversation channel.
* Non-members with the User role can no longer query messages within the conversation channel.

## Version 0.0.1 Beta.28 (2022-09-09)

### New Features

* Enhanced [LiveCollections](https://docs.social.plus/social-plus-sdk/core-concepts/live-objects-collections/typescript-live-objects-collections) for Message collection, Followers/Following collection. Newly created messages and new followers are now automatically reflected in their respective collections.
* Enhanced [Video on Demand](https://docs.social.plus/social-plus-sdk/social/posts/create-post/video-post) (VOD) configurations. Videos you upload with our SDK can now be transcoded to 4 different resolutions (from 360p to 1080p) with a maximum file size of 1 GB and a duration of up to 2 hours.

## Version 0.0.1 Beta.27 (2022-08-26)

### New Features

* Enhanced [LiveCollections](https://docs.social.plus/social-plus-sdk/core-concepts/live-objects-collections/typescript-live-objects-collections) for message reactions. Newly created reactions are now automatically added into the collection.
* Introduced ability to [ban/un-ban channel members](https://docs.social.plus/social-plus-sdk/chat/moderation/ban-unban-a-list-of-channel-members). Admins can now ban/un-ban channel members.

## Version 0.0.1 Beta.26 (2022-08-11)

### New Features

* Enhanced [LiveCollections](https://app.gitbook.com/o/-LC7aYJfVrBgEkQp-YT8/s/-MX0mOAVWkotGme0iRzu/~/changes/FsdWOVy6ihiiUWmwANG9/core-concepts/live-objects-collections/typescript-live-objects-collections) for comments collection. Newly added comments are now automatically added into the collection

### Fixes

* Fixed issue where two different `messageIds` were being returned when attempting to create a new message

### Breaking Change

* queryReactions pagination parameters changed from `{limit: number; after: number;}` to `{limit: number; before: string}` which `before` should be `referenceId`

## Version 0.0.1 Beta.25 (2022-07-29)

### New Features

* Introduced [post review](https://docs.social.plus/social-plus-sdk/social/posts/post-review) feature. Admin can now approve or decline a community post.
* Introduced ability to [flag and unflag users](https://docs.social.plus/core-concepts/user#flag-unflag-users-1).
* Introduced [`onPollUpdated`](https://docs.social.plus/social-plus-sdk/social/posts/create-post/poll-post) feature that allows to receive reactive callback when a user chooses to Vote, Close and Delete on a poll.

### Fixes

* Fixed issue where tags cannot be updated on a channel if new parameter is sent

## Version 0.0.1 Beta.24 (2022-07-12)

### Fixes

* SDK Upgrade&#x20;

## Version 0.0.1 Beta.23 (2022-07-04)

### Fixes

* Fixed issue with `myReactions` array disappearing when message was updated
* Fixed issue with messages being created multiple times

## Version 0.0.1 Beta.22 (2022-06-17)&#x20;

### Fixes

* Fixed issue with comment sorting&#x20;
* Fixed issue with `Amity.Message<"text">` function being replaced by "never"&#x20;
* Added missing type for `isDeleted` parameter in `queryChannels`
* Added missing type for `contentDataPoll`
* Support tags in chat

## Version 0.0.1 Beta.21 (2022-06-02)&#x20;

### Fixes&#x20;

* Passed the channel member model to the related channel member event callback

## Version 0.0.1 Beta.20 (2022-05-20)

### **New Features**&#x20;

* When a user log in with only a ‘user id’, the user's display name will no longer be replaced with the user id.&#x20;
* Support ability to [query reactions](https://docs.social.plus/chat/messaging/message-reaction#reaction-query).

### Fixes

* Fixed picture rotation issue when uploading an image in chat

## Version 0.0.1 Beta.19 (2022-05-09)

### New Features

* Ability to filter channels by tags.
* New createImage function to upload images.

### Fixes

* createPoll Typo

### Breaking Changes&#x20;

* createFile doesn't return image attributes anymore, you should use [createImage](https://docs.social.plus/social-plus-sdk/changelogs-and-versioning/broken-reference) instead

## Version 0.0.1 Beta.18 (2022-04-22)

### New Features

* Ability to create, update and delete poll post.
* Ability to vote poll post.
* Ability to mention user in poll post&#x20;

### Fixes

* Regex related to Real Time Event to support in android low end devices.
* Accessing global object on all ends

### Breaking Changes&#x20;

* Change upload ‘[file](https://docs.social.plus/social-plus-sdk/changelogs-and-versioning/broken-reference)' API to version 4

## Version 0.0.1 Beta.17 (2022-03-31)

### New Features

* Realtime events for comments and posts in User feed&#x20;
* Add `tag` type property in Post model&#x20;
* Upload video in posts and messages

### Breaking Changes&#x20;

* Change `addCommunityMembersRole` to `addCommunityMembersRoles` and the second parameter(roles) should be sent as array

#### Before v0.0.1-beta.17

```typescript
addCommunityMembersRole(communityId, 'admin', ['user1', 'user2'])
```

**Starting v0.0.1-beta.17**

```typescript
addCommunityMembersRoles(communityId, ['admin'], ['user1', 'user2'])
```

* Change `removeCommunityMembersRole` to `removeCommunityMembersRoles` and the second parameter(roles) should be sent as array

#### Before v0.0.1-beta.17

```typescript
removeCommunityMembersRole(communityId, 'admin', ['user1', 'user2'])
```

**Starting v0.0.1-beta.17**

```typescript
removeCommunityMembersRoles(communityId, ['admin'], ['user1', 'user2'])
```

## Version 0.0.1 Beta.16 (2022-03-17)

### New Feature

* Syntax improvement for `Amity.Paged`. Refer to [Pagination](https://docs.social.plus/social-plus-sdk/changelogs-and-versioning/broken-reference) for its usage.<br>

  ```typescript
  const [options, setOptions] =
      useState<Amity.RunQueryOptions<typeof queryMessages>>();
  ```

## Version 0.0.1 Beta.15 (2022-03-03)

### Fixes

* Resolve undefined `API_ENDPOINT` by adding `API_REGIONS` constant
* Fix observers callback type

## Version 0.0.1 Beta.1**4** (2022-02-17)

### New Feature

* Mention individual users in chat&#x20;

### Fixes

* Paging type issue in query methods ( i.e. `queryPosts`, `queryComments` ,  `queryMessages`, `queryChannels`, `queryCommunities`)
* Incorrect type returned in `runQuery` response

## Version 0.0.1 Beta.13 (2022-02-04)

### New Features&#x20;

* User can leave Community&#x20;
* Ability to report unnecessary Comments&#x20;
* Ability to report unnecessary Posts&#x20;
* User can edit or update one's own Posts&#x20;
* Mention users in Comments&#x20;
* Mention users in Posts (text, image, file, and audio posts)&#x20;
* Ability to comment and reply in Posts&#x20;
* User can invite and dismiss Community Members&#x20;
* Ability to create a private/public Community

## Version 0.0.1 Beta.12 (2022-01-21)

### Fixes&#x20;

* Only the first observable can call the `update` callback if there are more than one observables listening to the same event simultaneously&#x20;
* Unhandled exception if connection is closed without error instance

{% hint style="warning" %}
Due to current limitation, we encounter observers call duplication. We are working on fixing this issue for the next release.
{% endhint %}

## Version 0.0.1 Beta.11 (2022-01-11)

### Fix

* Get user function issues

## Version 0.0.1 Beta.10 (2021-12-29)

### New Features

* New Internal Cache System
* Query Users Caching
* `runQuery` algorithm is revamped so that it reads better, and includes constantly loading/origin values with meaning
* All API endpoints will return at least an `Amity.Cached`&#x20;

  <div data-gb-custom-block data-tag="hint" data-style="warning" class="hint hint-warning"><p>Due to a technical issue, <code>prevPage</code> and <code>nextPage</code> are not available in the returned interface for queries including pagination. A temporary fix is to use <code>// @ts-ignore</code> to avoid typing error. A fix for this issue will be available in our next release.</p></div>

### Fix

* Run latest version with MQTT support on react-native

### Breaking Changes

* `clearCache` function is renamed to `disableCache`
* `Amity.QueryMetadata` is deprecated, use Amity.SnapshotOptions instead
* Returned data from `runQuery` is changed from an object with keys to an array of items

## Version 0.0.1 Beta.9 (2021-12-24)

### Fix

* SDK Upgrade

## Version 0.0.1 Beta.7 (2021-11-10)

### Fix

* SDK Upgrade

## Version 0.0.1 Beta.6 (2021-10-28)

### Fix

* SDK Upgrade

## Version 0.0.1 Beta.5 (2021-10-14)

### New Feature

* Global ban error handling

## Version 0.0.1 Beta.4 (2021-10-05)

### New Feature

* Channel Types Filter for querying Channels

## Version 0.0.1 Beta.3 (2021-09-21)

### New Features

Initial beta release. Included the following Chat features:

* Create Text, Image, and File Messages
* Flag and Unflag Messages
* Query and Get Messages
* Update and Delete Messages
* Add and Remove Reaction from Messages
* Join and Leave Channels
* Create Channels
* Query and Get Channels
