Browse Source

Bugfixes

master
Igor Zhukov 7 years ago
parent
commit
2a406f1300
  1. 2
      app/js/controllers.js
  2. 2
      app/js/directives.js

2
app/js/controllers.js

@ -2512,7 +2512,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
return ids return ids
}) })
var chatParticipantsPromise var chatParticipantsPromise
if (peerID < 0) { if (peerID < 0 && !AppPeersManager.isBroadcast(peerID)) {
if (AppPeersManager.isChannel(peerID)) { if (AppPeersManager.isChannel(peerID)) {
chatParticipantsPromise = AppProfileManager.getChannelParticipants(-peerID) chatParticipantsPromise = AppProfileManager.getChannelParticipants(-peerID)
} else { } else {

2
app/js/directives.js

@ -682,11 +682,11 @@ angular.module('myApp.directives', ['myApp.filters'])
$scope.pinnedMessageID = 0 $scope.pinnedMessageID = 0
$scope.$emit('ui_height') $scope.$emit('ui_height')
} }
var jump = ++$scope.jump
if (!AppPeersManager.isChannel(peerID)) { if (!AppPeersManager.isChannel(peerID)) {
return return
} }
var channelID = -peerID var channelID = -peerID
var jump = ++$scope.jump
AppProfileManager.getChannelPinnedMessage(channelID).then(function (pinnedMessageID) { AppProfileManager.getChannelPinnedMessage(channelID).then(function (pinnedMessageID) {
if (jump != $scope.jump) { if (jump != $scope.jump) {
return return

Loading…
Cancel
Save