# TS SDK

**URL:** https://forum.social.plus/c/ts-sdk/10.md?page=1

[Latest](https://forum.social.plus/latest.md) · [Categories](https://forum.social.plus/categories.md) · [Tags](https://forum.social.plus/tags.md)

**Page:** 2

---

## [File attachment at comment](https://forum.social.plus/t/file-attachment-at-comment/1569)

<div class="topic-metadata">

**Author:** [@asafruddin](https://forum.social.plus/u/asafruddin)\
**Replies:** 1\
**Last updated:** [December 12, 2024, 1:41pm UTC](https://forum.social.plus/t/file-attachment-at-comment/1569 "2024-12-12T13:41:01Z")

</div>

Hi there, I am using TS SDK I tried to send a comment with FileType.File for attachment, but the response is code 422 and the error is “The field ‘attachments\[0\].type’ does not match any of the allowed values.”. Can’t …

---

## [Amity TS SDK Dependency Issues](https://forum.social.plus/t/amity-ts-sdk-dependency-issues/1555)

<div class="topic-metadata">

**Author:** [@EmmanKusumi](https://forum.social.plus/u/EmmanKusumi)\
**Replies:** 7\
**Last updated:** [December 6, 2024, 12:48pm UTC](https://forum.social.plus/t/amity-ts-sdk-dependency-issues/1555 "2024-12-06T12:48:30Z")

</div>

Could you please help me on the dependency issues when implementing the latest version of Amity TS SDK? Here is a copy of my package.json “dependencies”: { “@amityco/ts-sdk-react-native”: “^6.32.2”, “@expo/vector-ico…

---

## [Amity Swagger API](https://forum.social.plus/t/amity-swagger-api/1554)

<div class="topic-metadata">

**Author:** [@EmmanKusumi](https://forum.social.plus/u/EmmanKusumi)\
**Replies:** 3\
**Last updated:** [December 4, 2024, 2:14am UTC](https://forum.social.plus/t/amity-swagger-api/1554 "2024-12-04T02:14:29Z")

</div>

I was having issues with the dependency of Amity for TS SDK, so I decided to implement the Amity API directly (Amity API) Could you please let me know how to get data for these? I can’t seem to find them from the docume…

---

## [Push notification setting](https://forum.social.plus/t/push-notification-setting/1384)

<div class="topic-metadata">

**Author:** [@tech\_kirbly](https://forum.social.plus/u/tech_kirbly)\
**Replies:** 6\
**Last updated:** [November 25, 2024, 4:57pm UTC](https://forum.social.plus/t/push-notification-setting/1384 "2024-11-25T16:57:10Z")

</div>

Hi, I am using ts-sdk to implement the push notification token & device registration for the app development using React Native. I know that ts-sdk doesn’t provide the push notification related parts still. But as I …

---

## [Messages disappearing in the Chat Inbox](https://forum.social.plus/t/messages-disappearing-in-the-chat-inbox/1535)

<div class="topic-metadata">

**Author:** [@mustafa](https://forum.social.plus/u/mustafa)\
**Replies:** 3\
**Last updated:** [November 13, 2024, 5:53am UTC](https://forum.social.plus/t/messages-disappearing-in-the-chat-inbox/1535 "2024-11-13T05:53:12Z")

</div>

Hi, My messages disappear when I send a message to someone, return to the chat list from his inbox, and open the user’s conversation again. Also, when I reopen the app, those messages that were sent are found in the in…

---

## [CORS error after upgrade](https://forum.social.plus/t/cors-error-after-upgrade/1503)

<div class="topic-metadata">

**Author:** [@lorandd](https://forum.social.plus/u/lorandd)\
**Replies:** 14\
**Last updated:** [November 4, 2024, 11:53am UTC](https://forum.social.plus/t/cors-error-after-upgrade/1503 "2024-11-04T11:53:22Z")

</div>

I have upgraded the TS SDK from “@amityco/ts-sdk”: “~6.17.3”, to: “@amityco/ts-sdk”: “~6.30.0”, and started to receive CORS errors when testing on from localhost, whit previous version it was working ok… Access to XM…

---

## [Can't leave the conversation channel Error: Amity SDK (400300):](https://forum.social.plus/t/cant-leave-the-conversation-channel-error-amity-sdk-400300/1519)

<div class="topic-metadata">

**Author:** [@anser786](https://forum.social.plus/u/anser786)\
**Replies:** 2\
**Last updated:** [November 1, 2024, 1:02pm UTC](https://forum.social.plus/t/cant-leave-the-conversation-channel-error-amity-sdk-400300/1519 "2024-11-01T13:02:24Z")

</div>

Hey I use this code for leaveing but i face this error const didLeaveChannel = await ChannelRepository.leaveChannel(channel?.channelId); error: message:Can’t leave the conversation channel I created this channel to c…

---

## [Getting multiple types of messages at once](https://forum.social.plus/t/getting-multiple-types-of-messages-at-once/1517)

<div class="topic-metadata">

**Author:** [@jfiejka](https://forum.social.plus/u/jfiejka)\
**Replies:** 3\
**Last updated:** [November 1, 2024, 7:38am UTC](https://forum.social.plus/t/getting-multiple-types-of-messages-at-once/1517 "2024-11-01T07:38:50Z")

</div>

I want to create a page where I can list all of the files attached to messages within a single channel. From what I see getMessages doesn’t allow to specify multiple types, is there any other way I can achieve this?

---

## [Message Read Count Not Updating on calling channel.markAsRead()](https://forum.social.plus/t/message-read-count-not-updating-on-calling-channel-markasread/1515)

<div class="topic-metadata">

**Author:** [@mustafa](https://forum.social.plus/u/mustafa)\
**Replies:** 1\
**Last updated:** [October 30, 2024, 4:23pm UTC](https://forum.social.plus/t/message-read-count-not-updating-on-calling-channel-markasread/1515 "2024-10-30T16:23:49Z")

</div>

Hi, I’m using Unread Count for the messages being received from the sender. On calling channel.markAsRead() when the message has been opened and I have the response from getChannel(), the read count in the channel d…

---

## [Search Channels by displayName](https://forum.social.plus/t/search-channels-by-displayname/1511)

<div class="topic-metadata">

**Author:** [@devS](https://forum.social.plus/u/devS)\
**Replies:** 3\
**Last updated:** [October 30, 2024, 1:25pm UTC](https://forum.social.plus/t/search-channels-by-displayname/1511 "2024-10-30T13:25:15Z")

</div>

Search- Search result does not appear if user searches apart from the first word in the user or channel name. Ex- If user name is “John Doe”, then if we search Doe then result does not appear. const onQueryChannel = …

---

## [Correct the notification message when member is added in a channel. You are now a member of “channel name” channel](https://forum.social.plus/t/correct-the-notification-message-when-member-is-added-in-a-channel-you-are-now-a-member-of-channel-name-channel/1512)

<div class="topic-metadata">

**Author:** [@devS](https://forum.social.plus/u/devS)\
**Replies:** 3\
**Last updated:** [October 30, 2024, 1:02pm UTC](https://forum.social.plus/t/correct-the-notification-message-when-member-is-added-in-a-channel-you-are-now-a-member-of-channel-name-channel/1512 "2024-10-30T13:02:25Z")

</div>

When a user creates a channel and sends the first message (e.g., “hi”), a notification will be triggered: “You are now a member of ‘hi’.”

---

## [FeedRepository sorting](https://forum.social.plus/t/feedrepository-sorting/1501)

<div class="topic-metadata">

**Author:** [@guillermomachado](https://forum.social.plus/u/guillermomachado)\
**Replies:** 2\
**Last updated:** [October 25, 2024, 2:09pm UTC](https://forum.social.plus/t/feedrepository-sorting/1501 "2024-10-25T14:09:02Z")

</div>

Hi community, I’m encountering an issue with the method FeedRepository.queryGlobalFeed in Amity for React Native. The posts are not being returned in the expected order. Here’s an example of the ordering I’m currently g…

---

## [Push Notifications Not Working in React Native App](https://forum.social.plus/t/push-notifications-not-working-in-react-native-app/1466)

<div class="topic-metadata">

**Author:** [@devS](https://forum.social.plus/u/devS)\
**Replies:** 21\
**Last updated:** [October 14, 2024, 3:06pm UTC](https://forum.social.plus/t/push-notifications-not-working-in-react-native-app/1466 "2024-10-14T15:06:08Z")

</div>

I’m currently facing challenges with implementing push notifications in my React Native application using the Amity SDK. I have attempted to register the push token using the following code: import { Client } from '@ami…

---

## [Deep Linking with Notifications( React-Native)](https://forum.social.plus/t/deep-linking-with-notifications-react-native/1490)

<div class="topic-metadata">

**Author:** [@devS](https://forum.social.plus/u/devS)\
**Replies:** 3\
**Last updated:** [October 14, 2024, 9:50am UTC](https://forum.social.plus/t/deep-linking-with-notifications-react-native/1490 "2024-10-14T09:50:01Z")

</div>

@amitysupport Could you share the payload (notification data received via notification in iOS)? I need it to handle routing for messaging based on channelId in React Native.

---

## [Lots of marker request on Channel actions](https://forum.social.plus/t/lots-of-marker-request-on-channel-actions/1456)

<div class="topic-metadata">

**Author:** [@amezal](https://forum.social.plus/u/amezal)\
**Replies:** 13\
**Last updated:** [October 2, 2024, 4:19pm UTC](https://forum.social.plus/t/lots-of-marker-request-on-channel-actions/1456 "2024-10-02T16:19:25Z")

</div>

When performing some channel actions using the ChannelCollection methods, these generate a lot of unnecessary network requests which slow my app down. This happens with joining a channel, leaving a channel, adding member…

---

## [React Native Push Notification Support](https://forum.social.plus/t/react-native-push-notification-support/1454)

<div class="topic-metadata">

**Author:** [@georgekorsnick](https://forum.social.plus/u/georgekorsnick)\
**Replies:** 4\
**Last updated:** [September 11, 2024, 7:03am UTC](https://forum.social.plus/t/react-native-push-notification-support/1454 "2024-09-11T07:03:08Z")

</div>

I know that the TS SDK doesn’t support Push Notifications but is it possible to add push notification support natively post RN build? We’d love it if there was a work around for the time being, however tedious it might b…

---

## [Should check availability of removeEventListener when using them at react native sdk](https://forum.social.plus/t/should-check-availability-of-removeeventlistener-when-using-them-at-react-native-sdk/1453)

<div class="topic-metadata">

**Author:** [@ptvu0610](https://forum.social.plus/u/ptvu0610)\
**Replies:** 1\
**Last updated:** [September 10, 2024, 10:17am UTC](https://forum.social.plus/t/should-check-availability-of-removeeventlistener-when-using-them-at-react-native-sdk/1453 "2024-09-10T10:17:12Z")

</div>

On the file client/utils/onOnline.ts and other locations, using the removeEventListener function without checking can cause the app to crash with other RTC libraries. if (typeof document !== 'undefined' && document.addE…

---

## [Invited User List?](https://forum.social.plus/t/invited-user-list/1451)

<div class="topic-metadata">

**Author:** [@Awais](https://forum.social.plus/u/Awais)\
**Replies:** 1\
**Last updated:** [September 9, 2024, 10:43am UTC](https://forum.social.plus/t/invited-user-list/1451 "2024-09-09T10:43:15Z")

</div>

Hi @amitysupport , I am Creating a group and i need the invited member list who are invited during group creation .is it possible to show all invited member list in the member section until they are not accepted group …

---

## [Fetching Live Data](https://forum.social.plus/t/fetching-live-data/1437)

<div class="topic-metadata">

**Author:** [@mustafa](https://forum.social.plus/u/mustafa)\
**Replies:** 9\
**Last updated:** [September 4, 2024, 10:17am UTC](https://forum.social.plus/t/fetching-live-data/1437 "2024-09-04T10:17:31Z")

</div>

Hi, I am creating the post using LiveCollection amity create and getPost(subscribeCommunityTopic)but it does not show on the feed without reloading the app or refreshing the page. Also, the likes and comments are not be…

---

## [Mismatch on permissions](https://forum.social.plus/t/mismatch-on-permissions/1441)

<div class="topic-metadata">

**Author:** [@amezal](https://forum.social.plus/u/amezal)\
**Replies:** 1\
**Last updated:** [August 27, 2024, 3:14pm UTC](https://forum.social.plus/t/mismatch-on-permissions/1441 "2024-08-27T15:14:26Z")

</div>

Trying to integrate Amity’s permissions with the ones in the app I’m working on, I tried to use the permissions (with the hasPermission method) that are available in the SDK and docs, but it kept returning as false. S…

---

## [Why blocked users are able to message each other](https://forum.social.plus/t/why-blocked-users-are-able-to-message-each-other/1434)

<div class="topic-metadata">

**Author:** [@aamir.shehzad](https://forum.social.plus/u/aamir.shehzad)\
**Replies:** 1\
**Last updated:** [August 22, 2024, 1:09pm UTC](https://forum.social.plus/t/why-blocked-users-are-able-to-message-each-other/1434 "2024-08-22T13:09:42Z")

</div>

Hello, I have blocked a user using UserRepository.Relationship.blockUser('userId'); but still both the blocked user and the one who blocked him are able to send message to each other. Why does it happen? Looking for …

---

## [Adding new file when editing a post](https://forum.social.plus/t/adding-new-file-when-editing-a-post/1413)

<div class="topic-metadata">

**Author:** [@cadybo](https://forum.social.plus/u/cadybo)\
**Replies:** 1\
**Last updated:** [August 9, 2024, 9:30am UTC](https://forum.social.plus/t/adding-new-file-when-editing-a-post/1413 "2024-08-09T09:30:02Z")

</div>

Is it possible to add a new file (image/video or file) when editing a post? It seems I can only edit post content (the text) or remove files but there is no buttons to add a new file

---

## [Adding more images into an existing media post](https://forum.social.plus/t/adding-more-images-into-an-existing-media-post/1433)

<div class="topic-metadata">

**Author:** [@aamir.shehzad](https://forum.social.plus/u/aamir.shehzad)\
**Replies:** 3\
**Last updated:** [August 22, 2024, 7:07am UTC](https://forum.social.plus/t/adding-more-images-into-an-existing-media-post/1433 "2024-08-22T07:07:45Z")

</div>

Hi, Hope you’re doing well. I have a post that contains text content and an image into it. Now, I have to implement the Edit Post Feature in which I wanna change the text content and add more images into it. The update…

---

## [Replied message](https://forum.social.plus/t/replied-message/1427)

<div class="topic-metadata">

**Author:** [@javoxir1](https://forum.social.plus/u/javoxir1)\
**Replies:** 6\
**Last updated:** [August 15, 2024, 10:43am UTC](https://forum.social.plus/t/replied-message/1427 "2024-08-15T10:43:09Z")

</div>

how can i show replied message under my message. like other chats. so i replied to one message, and whant to show its content under my message block?

---

## [Message feed not found](https://forum.social.plus/t/message-feed-not-found/1425)

<div class="topic-metadata">

**Author:** [@javoxir1](https://forum.social.plus/u/javoxir1)\
**Replies:** 2\
**Last updated:** [August 14, 2024, 3:59pm UTC](https://forum.social.plus/t/message-feed-not-found/1425 "2024-08-14T15:59:15Z")

</div>

\[Error: Amity SDK (400400): Message feed not found\] error when i’m trying to get messages

---

## [Users posts that i followed which is related to community](https://forum.social.plus/t/users-posts-that-i-followed-which-is-related-to-community/1422)

<div class="topic-metadata">

**Author:** [@javoxir1](https://forum.social.plus/u/javoxir1)\
**Replies:** 5\
**Last updated:** [August 14, 2024, 12:20pm UTC](https://forum.social.plus/t/users-posts-that-i-followed-which-is-related-to-community/1422 "2024-08-14T12:20:05Z")

</div>

how can i see all users posts that i followed which is related to community. i mean, i want to see in my feed posts that my followed users posted to another cmmunities

---

## [Delete all the conversation within a chat](https://forum.social.plus/t/delete-all-the-conversation-within-a-chat/1419)

<div class="topic-metadata">

**Author:** [@aamir.shehzad](https://forum.social.plus/u/aamir.shehzad)\
**Replies:** 3\
**Last updated:** [August 13, 2024, 8:09am UTC](https://forum.social.plus/t/delete-all-the-conversation-within-a-chat/1419 "2024-08-13T08:09:12Z")

</div>

Hi, I know how to delete a single message using \*\* MessageRepository.softDeleteMessage(messageId);\*\* but I want to delete all the messages within a chat. Please do mention how it will be accomplished? Best, Aamir Sheh…

---

## [Community posts in my profile screen](https://forum.social.plus/t/community-posts-in-my-profile-screen/1418)

<div class="topic-metadata">

**Author:** [@javoxir1](https://forum.social.plus/u/javoxir1)\
**Replies:** 1\
**Last updated:** [August 12, 2024, 1:03pm UTC](https://forum.social.plus/t/community-posts-in-my-profile-screen/1418 "2024-08-12T13:03:20Z")

</div>

can i get my created posts in my profile screen if i put targetType to “community” and targetId to {communityId}? do you have some api to getting all posts that i created post even if it is created for community or no…

---

## [Video Streaming Delete](https://forum.social.plus/t/video-streaming-delete/1416)

<div class="topic-metadata">

**Author:** [@tech\_kirbly](https://forum.social.plus/u/tech_kirbly)\
**Replies:** 1\
**Last updated:** [August 12, 2024, 9:12am UTC](https://forum.social.plus/t/video-streaming-delete/1416 "2024-08-12T09:12:08Z")

</div>

Hi, I am working with the streaming video management (posting with video streaming, messaging with video streaming) Can you let me know how to remove the streaming video completely? I tried to remove the video streami…

---

## [Query Channels by keyword](https://forum.social.plus/t/query-channels-by-keyword/1399)

<div class="topic-metadata">

**Author:** [@jfiejka](https://forum.social.plus/u/jfiejka)\
**Replies:** 6\
**Last updated:** [July 24, 2024, 3:51pm UTC](https://forum.social.plus/t/query-channels-by-keyword/1399 "2024-07-24T15:51:48Z")

</div>

Hey, So the method (getChannels) mentioned in the docs here: Query Channels | Amity Docs doesn’t accept a “keyword” as a parameter. I can only provide a full displayName instead. The SDK version I’m using is: 6.23.0

[Previous page](https://forum.social.plus/c/ts-sdk/10.md)

[Next page](https://forum.social.plus/c/ts-sdk/10.md?page=2)
