From c4379e48274acbb84dc3fea06247b5596a8e9d40 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Thu, 16 Jul 2015 12:57:59 +0100 Subject: [PATCH] Remove 'status' from payload; unused. --- src/CallHandler.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/CallHandler.js b/src/CallHandler.js index c041f6462..12b55c265 100644 --- a/src/CallHandler.js +++ b/src/CallHandler.js @@ -22,13 +22,13 @@ limitations under the License. * This handler dispatches when voip calls are added/updated/removed from this list: * { * action: 'call_state' - * room_id: , - * status: ringing|ringback|connected|ended|busy|stop_ringback|stop_ringing + * room_id: * } * - * To know if the call was added/removed, this handler exposes a getter to + * To know the state of the call, this handler exposes a getter to * obtain the call for a room: - * CallHandler.getCall(roomId) + * var call = CallHandler.getCall(roomId) + * var state = call.call_state; // ringing|ringback|connected|ended|busy|stop_ringback|stop_ringing * * This handler listens for and handles the following actions: * { @@ -111,8 +111,7 @@ function _setCallState(call, roomId, status) { } dis.dispatch({ action: 'call_state', - room_id: roomId, - status: status + room_id: roomId }); }