From 94238f3e7146fb2511b625648e231b78670d505e Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Wed, 22 Oct 2014 17:00:08 +0400 Subject: [PATCH] Correct chat delete Clear history & Delete chat remove conversation from conversations list --- app/js/controllers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/js/controllers.js b/app/js/controllers.js index 6ed0ccf9..47ab1d5e 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -513,7 +513,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) $scope.$on('dialog_flush', function (e, dialog) { for (var i = 0; i < $scope.dialogs.length; i++) { if ($scope.dialogs[i].peerID == dialog.peerID) { - $scope.dialogs[i].deleted = true; + $scope.dialogs.splice(i, 1); break; } }