For Chat SDK of flutter how to send Audio or video message?

Hello, to delete a conversation channel, you can utilise this API: Amity API

how to pass authorization token in that?

Hello, you can use admintoken, please refer here: https://docs.amity.co/technical-faq#what-should-i-use-as-the-authorization-token-when-i-need-to-perform-admin-actions

Hey,

I have created one conversation channel between 2 users.
For example, “Sam” wants to chat with “Andrew”.

“Sam” created a channel in which display name goes as “Andrew”
but when “Andrew” updates his name, It’s not updating channel display name

What to do in this case? how to update channel name when user updates his profile?

Hello @puja , When there are only 2 users in a channel, it’s recommended to store both users’ userIds in the channel metadata. This allows for efficient retrieval of user information when querying the channel. Here’s how you can refine the process:

  1. Store User IDs in Channel Metadata:

    • When creating a channel with 2 users, save both users’ userIds in the channel metadata.
  2. Querying the Channel:

    • Retrieve the channel metadata and extract the userIds of both users.
  3. Retrieve User Information:

    • Use the extracted userIds to fetch user information (e.g., userDisplayname) using your platform’s getUsers method.
  4. Display User Information in UI:

    • Determine which displayName corresponds to the current user and which to the other user.
    • Display the other user’s displayName in your chat interface.

Hey @amitysupport

Thanks for reply, that’s not actual problem

Actual problem is when user changes his name
Push notification takes display name as channel name. What to do for that?

Hello @puja, could you please help clarify? Did you mean that the push notification takes their new display name or their old one?

I stored both users data into metadata and display name as other user’s name Let’s say “Sam”

Now “Sam” is updated his profile to “Hugh” but when push notification arrives it is still displayed as “Sam”

how to resolve that?

Hello @puja , For your issue, you can adjust push notifications through the console. Please refer to this link for more details: Push Notifications Settings.