Repository navigation
docs(react): ring 1:1 calls through the Calls SDK 5.1 in UI Kit 7.4 - #632
Closed
PrajwalDhuleCC wants to merge 15 commits into
Closed
PrajwalDhuleCC wants to merge 15 commits into
PrajwalDhuleCC wants to merge 15 commits into
Conversation
Call Features gets a "How calls ring" section: 1:1 calls ring through the Calls SDK, the caller's screen reads "Outgoing Call" then "Ringing...", the callee's other tabs and devices stop when one answers or declines, the caller gives up as unanswered after 45 s, and a busy tab answers a new call busy. Group calls still send a meeting message. A subsection says what Connect legacy ringing does and what happens while it's off, and links to the Calls docs instead of repeating them. The install line asks for the Calls SDK 5.1.1, which 1:1 calls need; on 5.0.x they fail with CALLS_SDK_UNAVAILABLE. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The overview, the four integration pages and the migration guide now give the Chat SDK peer as ^4.2.1 and the Calls SDK peer as ^5.1.1, and name 7.3 as the release that needs them. The version notes add the 7.3.0 floor and link to How calls ring for why the Calls SDK floor rose. The release versions are placeholders until the Calls SDK and UI Kit releases ship. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Step 1 installs the Calls SDK 5.1.1, which 1:1 calls need. Step 3 says how 1:1 call settings work now: laid over the kit's defaults when the call is placed or starts ringing, with sessionType from the button and isPeerCall on, and not changed by settings given later. Step 5 describes "Outgoing Call", then "Ringing...". Step 7's example passed an onAccept that only logged, which now leaves the call unanswered (and before, skipped acceptCall). It now says to leave onAccept and onDecline unset, to listen for ui:call/accepted and ui:call/rejected to run code, and shows an onAccept that joins the prepared session with CometChatOngoingCall. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The listener table listed Chat SDK events a ringing call never fires. It now lists what the buttons follow: the placed call's Calls SDK session, the 3 s status read and the incoming ring, with the Chat SDK's events left for calls from apps on legacy ringing and for Connect legacy ringing. Call Settings and its prop say that 1:1 settings are laid over the kit's defaults when the call is placed, while group settings still replace them. A note on the click overrides points apps that draw their own call screens at useCometChatCallButtons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the ringing flow, onAccept no longer replaces CometChat.acceptCall: the kit stops ringing and hands the app the prepared session to join with CometChatOngoingCall or useOngoingCall. onDecline makes the kit only stop ringing and leave that session, which ends a 1:1 call for the caller as unanswered. Both pages say to leave them unset and listen for ui:call/accepted and ui:call/rejected instead, and the first example no longer passes callbacks that only log. The callSettingsBuilder warning said the builder is never applied. It is now applied to ringing calls, laid over the kit's defaults when the call starts ringing; it is still not applied to a call from an app on legacy ringing. The listener section describes the ringing flow, and the page lists ui:call/accepted and the translated Accept and Decline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ing Call The page said the screen reads "Calling...". It reads "Outgoing Call", then "Ringing..." once the receiver's device rings, for any call the kit placed. The examples placed and cancelled calls with CometChat.initiateCall and rejectCall, which never ring on the Calls SDK flow and never show "Ringing...". The standalone example now uses useCometChatCallButtons to place and cancel the call and to show the ongoing call, and the flat example leaves the cancel to the caller. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Message Header, Call Logs and the property-changes table said the settings go unchanged to CometChatOngoingCall. For a 1:1 call they are now laid over the kit's defaults when the call is placed, with sessionType from the button; a group call's still replace the defaults. Call Logs also says its calls ring as the call buttons' do, and types the prop as SessionSettings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Events Received table had no ui:call/* rows, though the list has always handled them. They are listed now, with the call events among the listeners, and a new "Calls in the List" section says what a call does there: only when call activities update conversations, the preview says how the call went from the user's side, the chat moves up but keeps its unread count, and after a ringing-flow call the list fetches the chat until its last message shows the outcome, placing it by time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ooting logout() now says what it does with a call in the tab before logging out: it cancels a call being placed, stops a ring (which ends a 1:1 call for the caller as unanswered), leaves a joined call, waits at most 3 s, then logs out of the Chat SDK and the Calls SDK. Troubleshooting gets a Calls section: CALLS_SDK_UNAVAILABLE on 5.0.x, late outcomes and older apps ringing on while Connect legacy ringing is off, the callee's logout ending the call, and a preview that doesn't change when call activities are off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On the ringing flow the Chat SDK hears nothing after a call's initiated message while Connect legacy ringing is off, so the kit publishes call/accepted, call/rejected, call/cancelled and call/ended itself, once per call, from the call's session, the user's other tabs and the 3 s status read. The Call Events table says so, notes they can come a few seconds late, and widens call/rejected to busy and call/cancelled to no answer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The kit's onAccept now hands the call to the app, which joins through CometChatOngoingCall, useOngoingCall or the prepared session, and apps that draw their own call buttons need useCometChatCallButtons to place calls that ring. None of these had a page. The new guide shows how to place and cancel calls with the hook (its options, with callSettingsBuilder, and what it returns), show the outgoing and ongoing call, join into an element of the app's own with useOngoingCall, and answer calls in the app's own screen. The call buttons and outgoing call pages link to it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A group decline only stops the ring for that user, and the caller's own cancel isn't something the screen hears about. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The incoming call card still rings for a group call another app places. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
…nippets Every call's settings are now laid over the kit's defaults, so the pages drop the group-call and incoming-call exceptions. The snippets take their SDK types as type imports and say which hook values they use, and the conversations page loses two lines that repeated the list's behavior. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflicts were the version tables and install notes both changed: the integration pages keep the Calls SDK 5.1.1 floor and gain main's offline row, the Chat SDK peer stays ^4.2.1 (from 7.4.0, with offline still needing 4.3.1), troubleshooting has both the Calls table and the offline section, and the UI Kit version these pages are written for is 7.4.0. The release placeholders are gone: Calls SDK 5.1.1 is released. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6 of 11 tasks
Contributor
Author
|
Closing in favour of #633, which now has the React and Angular ringing docs and the Calls SDK page updates in one PR. The commits from this branch are merged into it unchanged. The branch stays. |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
React UI Kit 7.4 rings 1:1 calls through the Calls SDK 5.1 ringing flow. Before, they rang through the Chat SDK's call messages. This PR updates the React UI Kit pages to match:
onAcceptexample that joins the call.useCometChatCallButtons,useOngoingCallandonAccept.Versions: UI Kit 7.4.0, Calls SDK
^5.1.1(released on 25 Nov) and Chat SDK^4.2.1. These are final, and no placeholders are left. Main's offline support pages for 7.3.0 are merged in.This stays a draft until UI Kit 7.4.0 is released.
Related Issue(s)
The UI Kit change: cometchat-team/uikit-react#2459.
Type of Change
Checklist
Additional Information
mint broken-linkspasses, and every changed page renders inmint dev.🤖 Generated with Claude Code