Skip to content

Commit 1843af1

Browse files
committed
feat(whatsapp): add user_disconnected field for disconnect request
1 parent 5c369b1 commit 1843af1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

protobufs/livekit_connector_whatsapp.proto

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,12 @@ message DialWhatsAppCallResponse {
7070
message DisconnectWhatsAppCallRequest {
7171
// Required - Call ID sent by Meta
7272
string whatsapp_call_id = 1;
73-
// Required - The API key of the business that is disconnecting the call
73+
// The API key of the business that is disconnecting the call
74+
// Optional - only if the user disconnected the call
7475
string whatsapp_api_key = 2 [(logger.redact) = true];
76+
// Set this to true if the user disconnected the call
77+
// Otherwise, call will be disconnected when we hit a media timeout
78+
bool user_disconnected = 3;
7579
}
7680

7781
message DisconnectWhatsAppCallResponse {

0 commit comments

Comments
 (0)