Browse Source

Fixed msgs grouping after delete

Closes #481
master
Igor Zhukov 10 years ago
parent
commit
12a11749b0
  1. 5
      app/js/controllers.js

5
app/js/controllers.js

@ -1281,9 +1281,8 @@ angular.module('myApp.controllers', ['myApp.i18n']) @@ -1281,9 +1281,8 @@ angular.module('myApp.controllers', ['myApp.i18n'])
}
};
history.messages = newMessages;
if (AppMessagesManager.regroupWrappedHistory(history.messages)) {
$scope.$broadcast('messages_regroup');
}
AppMessagesManager.regroupWrappedHistory(history.messages);
$scope.$broadcast('messages_regroup');
if (historyUpdate.peerID == $scope.curDialog.peerID) {
$scope.state.empty = !newMessages.length;
}

Loading…
Cancel
Save