Correct chat delete

Clear history & Delete chat remove conversation from conversations list
This commit is contained in:
Igor Zhukov 2014-10-22 17:00:08 +04:00
parent 8f34169774
commit 94238f3e71

View File

@ -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;
}
}