From 0a9c4a6b7d16c67fa351eb9cc43b5c16101ef627 Mon Sep 17 00:00:00 2001 From: Jaon EarlWolf Date: Tue, 15 Dec 2015 17:03:05 -0300 Subject: [PATCH] FS-8654 [verto_communicator] - Added event emission on hangup --- .../src/vertoControllers/controllers/ChatController.js | 4 ++++ .../src/vertoControllers/controllers/MainController.js | 1 + 2 files changed, 5 insertions(+) diff --git a/html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js b/html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js index f04529193a..b6640a8dd6 100644 --- a/html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js +++ b/html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js @@ -123,6 +123,10 @@ $scope.members.push(translateMember(member)); } + $rootScope.$on('hangupCall', function() { + $scope.openId = null; + }); + $rootScope.$on('members.boot', function(event, members) { $scope.$apply(function() { clearConferenceChat(); diff --git a/html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js b/html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js index 5f965a2a74..9289c4fa7e 100644 --- a/html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js +++ b/html5/verto/verto_communicator/src/vertoControllers/controllers/MainController.js @@ -470,6 +470,7 @@ verto.hangup(); + $rootScope.$emit('hangupCall'); $location.path('/dialpad'); };