|
|
@ -2719,7 +2719,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) |
|
|
|
|
|
|
|
|
|
|
|
var doc = angular.copy(docs[docID]), |
|
|
|
var doc = angular.copy(docs[docID]), |
|
|
|
isGif = doc.mime_type == 'image/gif', |
|
|
|
isGif = doc.mime_type == 'image/gif', |
|
|
|
isSticker = doc.mime_type == 'image/webp' || doc.mime_type.substr(0, 6) == 'image/' && doc.sticker, |
|
|
|
isSticker = doc.mime_type.substr(0, 6) == 'image/' && doc.sticker, |
|
|
|
thumbPhotoSize = doc.thumb, |
|
|
|
thumbPhotoSize = doc.thumb, |
|
|
|
width, height; |
|
|
|
width, height; |
|
|
|
|
|
|
|
|
|
|
@ -2736,7 +2736,8 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) |
|
|
|
location: { |
|
|
|
location: { |
|
|
|
_: 'inputDocumentFileLocation', |
|
|
|
_: 'inputDocumentFileLocation', |
|
|
|
id: doc.id, |
|
|
|
id: doc.id, |
|
|
|
access_hash: doc.access_hash |
|
|
|
access_hash: doc.access_hash, |
|
|
|
|
|
|
|
dc_id: doc.dc_id |
|
|
|
}, |
|
|
|
}, |
|
|
|
w: doc.w, |
|
|
|
w: doc.w, |
|
|
|
h: doc.h, |
|
|
|
h: doc.h, |
|
|
|