From 5637238358987758d351ffc3ef1e4556b5770bcb Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Fri, 13 Feb 2015 15:56:18 +0300 Subject: [PATCH] Fixed peer photo jumps --- app/js/directives.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/js/directives.js b/app/js/directives.js index 264989bd..3a007c70 100755 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -2344,6 +2344,8 @@ angular.module('myApp.directives', ['myApp.filters']) } var updatePeerPhoto = function () { + var curJump = ++jump; + peerPhoto = peer.photo && angular.copy(peer.photo.photo_small); var hasPhoto = peerPhoto !== undefined; @@ -2362,7 +2364,6 @@ angular.module('myApp.directives', ['myApp.filters']) if (hasPhoto) { - var curJump = ++jump; MtpApiFileManager.downloadSmallFile(peer.photo.photo_small).then(function (blob) { if (curJump != jump) {