From 2a406f130059d91e33ca59d82afdd2ae75b73471 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Sun, 7 Jan 2018 16:02:05 +0400 Subject: [PATCH] Bugfixes --- app/js/controllers.js | 2 +- app/js/directives.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/js/controllers.js b/app/js/controllers.js index b27a757f..1ddb0a89 100644 --- a/app/js/controllers.js +++ b/app/js/controllers.js @@ -2512,7 +2512,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) return ids }) var chatParticipantsPromise - if (peerID < 0) { + if (peerID < 0 && !AppPeersManager.isBroadcast(peerID)) { if (AppPeersManager.isChannel(peerID)) { chatParticipantsPromise = AppProfileManager.getChannelParticipants(-peerID) } else { diff --git a/app/js/directives.js b/app/js/directives.js index 27bb904f..5225dd2c 100755 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -682,11 +682,11 @@ angular.module('myApp.directives', ['myApp.filters']) $scope.pinnedMessageID = 0 $scope.$emit('ui_height') } + var jump = ++$scope.jump if (!AppPeersManager.isChannel(peerID)) { return } var channelID = -peerID - var jump = ++$scope.jump AppProfileManager.getChannelPinnedMessage(channelID).then(function (pinnedMessageID) { if (jump != $scope.jump) { return