parent
cf7488ddd6
commit
a962ff33ce
@ -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…
x
Reference in New Issue
Block a user