|
|
@ -2722,8 +2722,8 @@ export class AppMessagesManager extends AppManager { |
|
|
|
} |
|
|
|
} |
|
|
|
} */ |
|
|
|
} */ |
|
|
|
|
|
|
|
|
|
|
|
if(isMessage && message.media) { |
|
|
|
|
|
|
|
let unsupported = false; |
|
|
|
let unsupported = false; |
|
|
|
|
|
|
|
if(isMessage && message.media) { |
|
|
|
switch(message.media._) { |
|
|
|
switch(message.media._) { |
|
|
|
case 'messageMediaEmpty': { |
|
|
|
case 'messageMediaEmpty': { |
|
|
|
delete message.media; |
|
|
|
delete message.media; |
|
|
@ -2787,14 +2787,18 @@ export class AppMessagesManager extends AppManager { |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(unsupported) { |
|
|
|
if(isMessage && !unsupported && message.entities) { |
|
|
|
|
|
|
|
unsupported = message.entities.some((entity) => entity._ === 'messageEntityCustomEmoji'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(isMessage && unsupported) { |
|
|
|
message.media = {_: 'messageMediaUnsupported'}; |
|
|
|
message.media = {_: 'messageMediaUnsupported'}; |
|
|
|
message.message = ''; |
|
|
|
message.message = ''; |
|
|
|
delete message.entities; |
|
|
|
delete message.entities; |
|
|
|
delete message.totalEntities; |
|
|
|
delete message.totalEntities; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!isMessage && message.action) { |
|
|
|
if(!isMessage && message.action) { |
|
|
|
const action = message.action as MessageAction; |
|
|
|
const action = message.action as MessageAction; |
|
|
|