Fixed media unsupported

This commit is contained in:
Igor Zhukov 2014-12-20 09:06:59 -08:00
parent c20bc4d520
commit 774fe847e9

View File

@ -1236,6 +1236,9 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
if (apiMessage.media && apiMessage.media._ == 'messageMediaAudio') { if (apiMessage.media && apiMessage.media._ == 'messageMediaAudio') {
AppAudioManager.saveAudio(apiMessage.media.audio); AppAudioManager.saveAudio(apiMessage.media.audio);
} }
if (apiMessage.media && apiMessage.media._ == 'messageMediaUnsupported') {
delete apiMessage.media.bytes;
}
if (apiMessage.action && apiMessage.action._ == 'messageActionChatEditPhoto') { if (apiMessage.action && apiMessage.action._ == 'messageActionChatEditPhoto') {
AppPhotosManager.savePhoto(apiMessage.action.photo); AppPhotosManager.savePhoto(apiMessage.action.photo);
} }