Browse Source

Draft

master
Igor Zhukov 9 years ago
parent
commit
5268f5b14d
  1. 7
      app/js/controllers.js
  2. 2
      app/js/services.js

7
app/js/controllers.js

@ -2194,6 +2194,13 @@ angular.module('myApp.controllers', ['myApp.i18n']) @@ -2194,6 +2194,13 @@ angular.module('myApp.controllers', ['myApp.i18n'])
function updateCommands () {
var peerID = $scope.curDialog.peerID;
if (peerID === undefined) {
console.warn('undefined peerID', $scope.curDialog);
console.trace();
safeReplaceObject($scope.commands, {});
$scope.$broadcast('mentions_update');
return;
}
AppProfileManager.getPeerBots(peerID).then(function (peerBots) {
if (!peerBots.length) {

2
app/js/services.js

@ -1064,7 +1064,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) @@ -1064,7 +1064,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
if (chatFullPromises[id] !== undefined) {
return chatFullPromises[id];
}
// console.trace('get chat full');
console.trace(dT(), 'Get chat full', id, AppChatsManager.getChat(id));
return chatFullPromises[id] = MtpApiManager.invokeApi('messages.getFullChat', {
chat_id: AppChatsManager.getChatInput(id)
}).then(function (result) {

Loading…
Cancel
Save