Browse Source

Fixed empty photo notifications

master
Igor Zhukov 11 years ago
parent
commit
9c8b2b640d
  1. 2
      app/js/services.js
  2. 1
      server.js

2
app/js/services.js

@ -1491,7 +1491,7 @@ angular.module('myApp.services', []) @@ -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;

1
server.js

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

Loading…
Cancel
Save