Fixed empty photo notifications

This commit is contained in:
Igor Zhukov 2014-03-19 12:40:16 +04:00
parent 3605e3c823
commit 9c8b2b640d
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -85,6 +85,7 @@ StaticServlet.MimeMap = {
'gif': 'image/gif',
'png': 'image/png',
  'svg': 'image/svg+xml',
  'wav': 'audio/wav',
'ico': 'image/vnd.microsoft.icon'
};