Browse Source

merged with master

gh-pages
Igor Zhukov 11 years ago
parent
commit
6aed48a51a
  1. 2
      app.manifest
  2. 2
      css/app.css
  3. BIN
      img/icons/IconsetW.png
  4. BIN
      img/icons/IconsetW_1x.png
  5. 26
      js/app.js
  6. 2
      js/app.js.map
  7. 22
      js/lib/mtproto.js

2
app.manifest

@ -1,5 +1,5 @@
CACHE MANIFEST
# Time: Mon Apr 28 2014 12:47:47 GMT+0800 (SGT)
# Time: Tue Apr 29 2014 22:02:06 GMT+0800 (SGT)
CACHE:

2
css/app.css

File diff suppressed because one or more lines are too long

BIN
img/icons/IconsetW.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

BIN
img/icons/IconsetW_1x.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

26
js/app.js

File diff suppressed because one or more lines are too long

2
js/app.js.map

File diff suppressed because one or more lines are too long

22
js/lib/mtproto.js

@ -1196,14 +1196,25 @@ factory('MtpAuthorizer', function (MtpDcConfigurator, MtpRsaKeysManager, MtpSecu
transformResponse: function (responseBuffer) {
var deserializer = new TLDeserialization(responseBuffer, {mtproto: true});
var auth_key_id = deserializer.fetchLong('auth_key_id');
var msg_id = deserializer.fetchLong('msg_id');
var msg_len = deserializer.fetchInt('msg_len');
try {
var auth_key_id = deserializer.fetchLong('auth_key_id');
var msg_id = deserializer.fetchLong('msg_id');
var msg_len = deserializer.fetchInt('msg_len');
} catch (e) {
return $q.reject({code: 406, type: 'NETWORK_BAD_RESPONSE', problem: e.message, stack: e.stack});
}
rng_seed_time();
return deserializer;
}
})['catch'](function (error) {
if (!error.message && !error.type) {
error = {code: 406, type: 'NETWORK_BAD_REQUEST'};
}
return $q.reject(error);
});
};
@ -2189,6 +2200,11 @@ factory('MtpNetworkerFactory', function (MtpDcConfigurator, MtpMessageIdGenerato
return $http.post('http://' + MtpDcConfigurator.chooseServer(self.dcID) + '/apiw1', resultArray, {
responseType: 'arraybuffer',
transformRequest: null
})['catch'](function (error) {
if (!error.message && !error.type) {
error = {code: 406, type: 'NETWORK_BAD_REQUEST'};
}
return $q.reject(error);
});
});
};

Loading…
Cancel
Save