Browse Source

Fixed sending photo as inputFileBig

Closes #1011
master
Igor Zhukov 9 years ago
parent
commit
a962ff33ce
  1. 3
      app/js/messages_manager.js

3
app/js/messages_manager.js

@ -1565,7 +1565,8 @@ angular.module('myApp.services')
}, function (error) { }, function (error) {
if (attachType == 'photo' && if (attachType == 'photo' &&
error.code == 400 && error.code == 400 &&
error.type == 'PHOTO_INVALID_DIMENSIONS') { (error.type == 'PHOTO_INVALID_DIMENSIONS' ||
error.type == 'PHOTO_SAVE_FILE_INVALID')) {
error.handled = true; error.handled = true;
attachType = 'document'; attachType = 'document';
message.send(); message.send();

Loading…
Cancel
Save