From 9c8b2b640dbdffe5c550a1e0e4975ca5747e9b4b Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Wed, 19 Mar 2014 12:40:16 +0400 Subject: [PATCH] Fixed empty photo notifications --- app/js/services.js | 2 +- server.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/js/services.js b/app/js/services.js index 65fd54f2..77cd672e 100644 --- a/app/js/services.js +++ b/app/js/services.js @@ -1491,7 +1491,7 @@ angular.module('myApp.services', []) notification.image = notificationPhoto.placeholder; notification.key = 'msg' + message.id; - if (notificationPhoto.location) { + if (notificationPhoto.location && !notificationPhoto.location.empty) { MtpApiFileManager.downloadSmallFile(notificationPhoto.location, notificationPhoto.size).then(function (url) { notification.image = url; diff --git a/server.js b/server.js index 94a6605c..0df3960d 100755 --- a/server.js +++ b/server.js @@ -85,6 +85,7 @@ StaticServlet.MimeMap = { 'gif': 'image/gif', 'png': 'image/png',   'svg': 'image/svg+xml', +  'wav': 'audio/wav', 'ico': 'image/vnd.microsoft.icon' };