nx: use etag

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/653/head
Varun Patil 2023-05-08 21:35:19 -07:00
parent a49d5dfad3
commit 8ec201cb0f
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ export function isMobile() {
export function getPreviewUrl(photo: IPhoto, square: boolean, size: number | [number, number] | 'screen') {
// Native preview
if (photo.flag & constants.c.FLAG_IS_LOCAL) {
return nativex.API.IMAGE_PREVIEW(photo.fileid);
return API.Q(nativex.API.IMAGE_PREVIEW(photo.fileid), { c: photo.etag });
}
// Screen-appropriate size