Propagate failure reason to the other party.

This commit is contained in:
David Baker 2014-09-22 11:44:15 +01:00
parent 83ea3c96ec
commit 4696622b0a
2 changed files with 8 additions and 7 deletions

View file

@ -145,7 +145,7 @@ angular.module('matrixPhoneService', [])
call.initWithHangup(event);
matrixPhoneService.allCalls[msg.call_id] = call;
} else {
call.onHangupReceived();
call.onHangupReceived(msg);
delete(matrixPhoneService.allCalls[msg.call_id]);
}
}