From a962ff33ce026f2fee653ee451d385a69ebdf253 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 24 Dec 2015 21:53:42 +0000 Subject: [PATCH] Fixed sending photo as inputFileBig Closes #1011 --- app/js/messages_manager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/js/messages_manager.js b/app/js/messages_manager.js index 0fdb8571..3e2a0c87 100644 --- a/app/js/messages_manager.js +++ b/app/js/messages_manager.js @@ -1565,7 +1565,8 @@ angular.module('myApp.services') }, function (error) { if (attachType == 'photo' && error.code == 400 && - error.type == 'PHOTO_INVALID_DIMENSIONS') { + (error.type == 'PHOTO_INVALID_DIMENSIONS' || + error.type == 'PHOTO_SAVE_FILE_INVALID')) { error.handled = true; attachType = 'document'; message.send();