[Problem/Question]
We have a platform for patients to talk to clinics that are our partners. Our patients can also talk directly to us for non-health related info (i.e. account questions, invoice,…)
We have a default application in senbird, called Default.
For each clinic, we create a separate application (Clinic1, Clinic2, Clinic3,…)
When a patient signs up for an account, we create a SendBird user in application Default.
When an employee of our company creates an account, we create a Sendbird user in application Default.
When an employee of our partner clinic creates an account, we create a Sendbird user in the appropriate clinic (i.e. Clinic A).
We have no problems creating channels for the patient to talk to us in the Default application.
When a patient wants to talk to a Clinic, we create a channel with:
- The patient (created in the Default application)
- Members of the appropriate clinic (i.e. Clinic A)
- Selected members of our patient management team (created in the Default application)
When we go to create the channel, we are seeing either (we can’t figure out the pattern)
- Certain users are excluded, so the channel is created without all the users we specify
- A channel is created with 0 users
Here’s an example of our call to create a channel between patient and a clinic:
URL:
https://api-1E062FF9-F57C-489B-B206-F136CD0AA9C1.sendbird.com/v3/group_channels
Header:
Api-Token: xxx
Body:
{“name”:“Melanie Dolores and Clínica Fernando Basto”,“channel_url”:“SendbirdGroupChannel-DPCPtyEnU67KW5MYkbPQ32fN”,“user_ids”:[“Login-DICt4H3bvBR508UymIi”,“Login-DPC1rDz6j345254jCXW”,“Login-DICK886DC8W10cWKlYO”],“is_distinct”:false,“is_public”:false,“is_ephemeral”:false}
Response (cover_url excluded because this support ticket tool doesn’t allow me to submit more than 2 URL’s in the support ticket):
{“channel_url”:“SendbirdGroupChannel-DPCPtyEnU67KW5MYkbPQ32fN”,“name”:“Melanie Dolores and Clínica Fernando Basto”,“data”:“”,“member_count”:1,“joined_member_count”:1,“max_length_message”:5000,“created_at”:1742230204,“custom_type”:“”,“is_distinct”:false,“is_super”:false,“is_broadcast”:false,“is_public”:false,“is_discoverable”:false,“freeze”:false,“is_ephemeral”:false,“unread_message_count”:0,“unread_mention_count”:0,“ignore_profanity_filter”:false,“has_ai_bot”:false,“has_bot”:false,“id”:830351028,“channel”:{“channel_url”:“SendbirdGroupChannel-DPCPtyEnU67KW5MYkbPQ32fN”,“name”:“Melanie Dolores and Clínica Fernando Basto”,“data”:“”,“created_at”:1742230204,“custom_type”:“”,“max_length_message”:5000,“member_count”:1},“created_by”:null,“disappearing_message”:{“is_triggered_by_message_read”:false,“message_survival_seconds”:-1},“is_access_code_required”:false,“is_created”:true,“message_survival_seconds”:-1,“sms_fallback”:{“wait_seconds”:-1,“exclude_user_ids”:},“last_message”:null,“members”:[{“user_id”:“Login-DPC1rDz6j345254jCXW”,“nickname”:“”,“profile_url”:“”,“require_auth_for_profile_image”:false,“metadata”:{},“is_online”:false,“last_seen_at”:-1,“state”:“joined”,“is_active”:true,“role”:“”,“is_muted”:false,“muted_end_at”:-1,“muted_description”:“”}],“operators”:}
Please help! Thank you!
// If problem, please fill out the below. If question, please delete.
[SDK Version]
// What version of the SDK are you using?
[Reproduction Steps]
// Please provide reproduction steps and, if possible, code snippets.
[Frequency]
// How frequently is this issue occurring?
[Current impact]
// How is this currently impacting your implementation?