Draft
This commit is contained in:
parent
e8d7590929
commit
5268f5b14d
@ -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) {
|
||||
|
@ -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…
x
Reference in New Issue
Block a user