Disable custom emoji
This commit is contained in:
parent
93a4ff901d
commit
e0351a793a
4
.env
4
.env
@ -1,5 +1,5 @@
|
|||||||
API_ID=1025907
|
API_ID=1025907
|
||||||
API_HASH=452b0359b988148995f22ff0f4229750
|
API_HASH=452b0359b988148995f22ff0f4229750
|
||||||
VERSION=1.5.0
|
VERSION=1.5.0
|
||||||
VERSION_FULL=1.5.0 (223)
|
VERSION_FULL=1.5.0 (224)
|
||||||
BUILD=223
|
BUILD=224
|
||||||
|
@ -2722,8 +2722,8 @@ export class AppMessagesManager extends AppManager {
|
|||||||
}
|
}
|
||||||
} */
|
} */
|
||||||
|
|
||||||
|
let unsupported = false;
|
||||||
if(isMessage && message.media) {
|
if(isMessage && message.media) {
|
||||||
let unsupported = false;
|
|
||||||
switch(message.media._) {
|
switch(message.media._) {
|
||||||
case 'messageMediaEmpty': {
|
case 'messageMediaEmpty': {
|
||||||
delete message.media;
|
delete message.media;
|
||||||
@ -2787,13 +2787,17 @@ export class AppMessagesManager extends AppManager {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if(unsupported) {
|
if(isMessage && !unsupported && message.entities) {
|
||||||
message.media = {_: 'messageMediaUnsupported'};
|
unsupported = message.entities.some((entity) => entity._ === 'messageEntityCustomEmoji');
|
||||||
message.message = '';
|
}
|
||||||
delete message.entities;
|
|
||||||
delete message.totalEntities;
|
if(isMessage && unsupported) {
|
||||||
}
|
message.media = {_: 'messageMediaUnsupported'};
|
||||||
|
message.message = '';
|
||||||
|
delete message.entities;
|
||||||
|
delete message.totalEntities;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!isMessage && message.action) {
|
if(!isMessage && message.action) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user