Skip to content

Commit c4379e4

Browse files
committed
Remove 'status' from payload; unused.
1 parent 41f659d commit c4379e4

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

‎src/CallHandler.js‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ limitations under the License.
2222
* This handler dispatches when voip calls are added/updated/removed from this list:
2323
* {
2424
* action: 'call_state'
25-
* room_id: <room ID of the call>,
26-
* status: ringing|ringback|connected|ended|busy|stop_ringback|stop_ringing
25+
* room_id: <room ID of the call>
2726
* }
2827
*
29-
* To know if the call was added/removed, this handler exposes a getter to
28+
* To know the state of the call, this handler exposes a getter to
3029
* obtain the call for a room:
31-
* CallHandler.getCall(roomId)
30+
* var call = CallHandler.getCall(roomId)
31+
* var state = call.call_state; // ringing|ringback|connected|ended|busy|stop_ringback|stop_ringing
3232
*
3333
* This handler listens for and handles the following actions:
3434
* {
@@ -111,8 +111,7 @@ function _setCallState(call, roomId, status) {
111111
}
112112
dis.dispatch({
113113
action: 'call_state',
114-
room_id: roomId,
115-
status: status
114+
room_id: roomId
116115
});
117116
}
118117

0 commit comments

Comments
 (0)