Browse Source

Correct chat delete

Clear history & Delete chat remove conversation from conversations list
master
Igor Zhukov 10 years ago
parent
commit
94238f3e71
  1. 2
      app/js/controllers.js

2
app/js/controllers.js

@ -513,7 +513,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
$scope.$on('dialog_flush', function (e, dialog) { $scope.$on('dialog_flush', function (e, dialog) {
for (var i = 0; i < $scope.dialogs.length; i++) { for (var i = 0; i < $scope.dialogs.length; i++) {
if ($scope.dialogs[i].peerID == dialog.peerID) { if ($scope.dialogs[i].peerID == dialog.peerID) {
$scope.dialogs[i].deleted = true; $scope.dialogs.splice(i, 1);
break; break;
} }
} }

Loading…
Cancel
Save