File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -886,6 +886,8 @@ export default class CallHandler extends EventEmitter {
886886 break ;
887887 case 'hangup' :
888888 case 'reject' :
889+ this . stopRingingIfPossible ( this . calls . get ( payload . room_id ) . callId ) ;
890+
889891 if ( ! this . calls . get ( payload . room_id ) ) {
890892 return ; // no call to hangup
891893 }
@@ -898,11 +900,15 @@ export default class CallHandler extends EventEmitter {
898900 // the hangup event away)
899901 break ;
900902 case 'hangup_all' :
903+ this . stopRingingIfPossible ( this . calls . get ( payload . room_id ) . callId ) ;
904+
901905 for ( const call of this . calls . values ( ) ) {
902906 call . hangup ( CallErrorCode . UserHangup , false ) ;
903907 }
904908 break ;
905909 case 'answer' : {
910+ this . stopRingingIfPossible ( this . calls . get ( payload . room_id ) . callId ) ;
911+
906912 if ( ! this . calls . has ( payload . room_id ) ) {
907913 return ; // no call to answer
908914 }
You can’t perform that action at this time.
0 commit comments