Skip to content

Commit

Permalink
Dispatch call_state, see element-hq/element-web#18823 (comment)
Browse files Browse the repository at this point in the history
Signed-off-by: Šimon Brandner <[email protected]>
  • Loading branch information
SimonBrandner committed Sep 11, 2021
1 parent be5619f commit 2acc662
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/CallHandler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,11 @@ export default class CallHandler extends EventEmitter {

const mappedRoomId = this.roomIdForCall(call);
this.setCallState(call, newState);
dis.dispatch({
action: 'call_state',
room_id: mappedRoomId,
state: newState,
});

switch (oldState) {
case CallState.Ringing:
Expand Down

0 comments on commit 2acc662

Please sign in to comment.