|
|
|
@ -775,7 +775,9 @@ TLDeserialization.prototype.fetchBool = function (field) {
@@ -775,7 +775,9 @@ TLDeserialization.prototype.fetchBool = function (field) {
|
|
|
|
|
} else if (i == 0xbc799737) { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
throw new Error('Unknown Bool constructor ' + i); |
|
|
|
|
|
|
|
|
|
this.offset -= 4; |
|
|
|
|
return this.fetchObject('Object', field); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TLDeserialization.prototype.fetchString = function (field) { |
|
|
|
@ -2637,7 +2639,10 @@ factory('MtpApiManager', function (AppConfigManager, MtpAuthorizer, MtpNetworker
@@ -2637,7 +2639,10 @@ factory('MtpApiManager', function (AppConfigManager, MtpAuthorizer, MtpNetworker
|
|
|
|
|
}, |
|
|
|
|
function (error) { |
|
|
|
|
console.error(dT(), 'Error', error.code, error.type, baseDcID, dcID); |
|
|
|
|
if (error.code == 401 && baseDcID && dcID != baseDcID) { |
|
|
|
|
if (error.code == 401 && baseDcID == dcID) { |
|
|
|
|
AppConfigManager.remove('dc', 'user_auth'); |
|
|
|
|
} |
|
|
|
|
else if (error.code == 401 && baseDcID && dcID != baseDcID) { |
|
|
|
|
if (cachedExportPromise[dcID] === undefined) { |
|
|
|
|
var exportDeferred = $q.defer(); |
|
|
|
|
|
|
|
|
|