Fixed empty photo notifications
This commit is contained in:
parent
3605e3c823
commit
9c8b2b640d
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user