Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
Correct chat delete
Browse files Browse the repository at this point in the history
Clear history & Delete chat remove conversation from conversations list
  • Loading branch information
zhukov committed Oct 22, 2014
1 parent 8f34169 commit 94238f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 94238f3

Please sign in to comment.