parent
1ce4c0c3d4
commit
edbb2e6d7f
@ -1393,7 +1393,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
|
||||
|
||||
if (curPeer) {
|
||||
$scope.historyState.typing.splice(0, $scope.historyState.typing.length);
|
||||
$scope.$broadcast('ui_history_append_new', {my: addedMessage.my});
|
||||
$scope.$broadcast('ui_history_append_new', {my: addedMessage.my, idle: $rootScope.idle.isIDLE});
|
||||
if (addedMessage.my && $scope.historyUnreadAfter) {
|
||||
delete $scope.historyUnreadAfter;
|
||||
$scope.$broadcast('messages_unread_after');
|
||||
|
@ -800,7 +800,7 @@ angular.module('myApp.directives', ['myApp.filters'])
|
||||
curAnimation = false;
|
||||
|
||||
$scope.$on('ui_history_append_new', function (e, options) {
|
||||
if (!atBottom && !options.my) {
|
||||
if ((!atBottom || options.idle) && !options.my) {
|
||||
return;
|
||||
}
|
||||
var curAnimated = animated &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user