Correct chat delete
Clear history & Delete chat remove conversation from conversations list
This commit is contained in:
parent
8f34169774
commit
94238f3e71
@ -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…
x
Reference in New Issue
Block a user