|
|
@ -1424,14 +1424,14 @@ angular.module('myApp.services') |
|
|
|
break |
|
|
|
break |
|
|
|
case 'messageMediaPhoto': |
|
|
|
case 'messageMediaPhoto': |
|
|
|
if (apiMessage.media.ttl_seconds) { |
|
|
|
if (apiMessage.media.ttl_seconds) { |
|
|
|
apiMessage.media = {_: 'messageMediaUnsupported'} |
|
|
|
apiMessage.media = {_: 'messageMediaUnsupportedWeb'} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
AppPhotosManager.savePhoto(apiMessage.media.photo, mediaContext) |
|
|
|
AppPhotosManager.savePhoto(apiMessage.media.photo, mediaContext) |
|
|
|
} |
|
|
|
} |
|
|
|
break |
|
|
|
break |
|
|
|
case 'messageMediaDocument': |
|
|
|
case 'messageMediaDocument': |
|
|
|
if (apiMessage.media.ttl_seconds) { |
|
|
|
if (apiMessage.media.ttl_seconds) { |
|
|
|
apiMessage.media = {_: 'messageMediaUnsupported'} |
|
|
|
apiMessage.media = {_: 'messageMediaUnsupportedWeb'} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
AppDocsManager.saveDoc(apiMessage.media.document, mediaContext) |
|
|
|
AppDocsManager.saveDoc(apiMessage.media.document, mediaContext) |
|
|
|
} |
|
|
|
} |
|
|
@ -1444,7 +1444,7 @@ angular.module('myApp.services') |
|
|
|
apiMessage.media.handleMessage = true |
|
|
|
apiMessage.media.handleMessage = true |
|
|
|
break |
|
|
|
break |
|
|
|
case 'messageMediaInvoice': |
|
|
|
case 'messageMediaInvoice': |
|
|
|
apiMessage.media = {_: 'messageMediaUnsupported'} |
|
|
|
apiMessage.media = {_: 'messageMediaUnsupportedWeb'} |
|
|
|
break |
|
|
|
break |
|
|
|
case 'messageMediaGeoLive': |
|
|
|
case 'messageMediaGeoLive': |
|
|
|
apiMessage.media._ = 'messageMediaGeo' |
|
|
|
apiMessage.media._ = 'messageMediaGeo' |
|
|
@ -1524,10 +1524,6 @@ angular.module('myApp.services') |
|
|
|
: 'ok' |
|
|
|
: 'ok' |
|
|
|
) |
|
|
|
) |
|
|
|
break |
|
|
|
break |
|
|
|
|
|
|
|
|
|
|
|
case 'messageActionScreenshotTaken': |
|
|
|
|
|
|
|
apiMessage.media = {_: 'messageMediaUnsupported'} |
|
|
|
|
|
|
|
delete apiMessage.action |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (migrateFrom && |
|
|
|
if (migrateFrom && |
|
|
|