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