Browse Source

Editing: fix clearing webpage

master
Eduard Kuzmenko 3 years ago
parent
commit
583e43216c
  1. 2
      src/components/chat/input.ts

2
src/components/chat/input.ts

@ -1794,7 +1794,7 @@ export default class ChatInput {
this.undoHistory.length = 0; this.undoHistory.length = 0;
} }
const urlEntities: Array<MessageEntity.messageEntityUrl | MessageEntity.messageEntityTextUrl> = !this.editMessage?.media && entities.filter(e => e._ === 'messageEntityUrl' || e._ === 'messageEntityTextUrl') as any; const urlEntities: Array<MessageEntity.messageEntityUrl | MessageEntity.messageEntityTextUrl> = (!this.editMessage?.media || this.editMessage.media._ === 'messageMediaWebPage') && entities.filter(e => e._ === 'messageEntityUrl' || e._ === 'messageEntityTextUrl') as any;
if(urlEntities.length) { if(urlEntities.length) {
for(const entity of urlEntities) { for(const entity of urlEntities) {
let url: string; let url: string;

Loading…
Cancel
Save