diff --git a/js/public/app.js b/js/public/app.js index a9cab5c..d7bc9e0 100644 --- a/js/public/app.js +++ b/js/public/app.js @@ -54,6 +54,14 @@ app.controller('OcSmsController', ['$scope', }; $scope.removeConversation = function() { $.post(OC.generateUrl('/apps/ocsms/delete/conversation'), {"contact": g_curContactName}, function(data) { + // Reinit main window + $('#ocsms-phone-label').html(''); + $('#ocsms-phone-opt-number').html(''); + $('#ocsms-phone-msg-nb').html(''); + $('#app-content-wrapper').html('
Please choose a conversation on the left menu
'); + $('#ocsms-conversation-removal').hide(); + $('#app-content-header').hide(); + $("li[peer-label='" + g_curContactName + "']").remove(); }); }