Wrap action messages for reply correctly
This commit is contained in:
parent
6977553709
commit
050ae89a19
@ -132,7 +132,7 @@ export namespace MessageRender {
|
|||||||
}).element;
|
}).element;
|
||||||
}
|
}
|
||||||
|
|
||||||
const wrapped = wrapReply(originalPeerTitle, originalMessage.message || '', originalMessage);
|
const wrapped = wrapReply(originalPeerTitle, undefined, originalMessage);
|
||||||
if(currentReplyDiv) {
|
if(currentReplyDiv) {
|
||||||
currentReplyDiv.replaceWith(wrapped);
|
currentReplyDiv.replaceWith(wrapped);
|
||||||
} else {
|
} else {
|
||||||
|
@ -95,12 +95,14 @@ export function wrapReplyDivAndCaption(options: {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(typeof(subtitle) === 'string') {
|
if(message) {
|
||||||
|
subtitleEl.textContent = '';
|
||||||
|
subtitleEl.append(appMessagesManager.wrapMessageForReply(message, message.message && limitSymbols(message.message, 140)));
|
||||||
|
} else if(typeof(subtitle) === 'string') {
|
||||||
subtitle = limitSymbols(subtitle, 140);
|
subtitle = limitSymbols(subtitle, 140);
|
||||||
subtitle = RichTextProcessor.wrapEmojiText(subtitle);
|
subtitle = RichTextProcessor.wrapEmojiText(subtitle);
|
||||||
|
replaceContent(subtitleEl, subtitle);
|
||||||
}
|
}
|
||||||
|
|
||||||
replaceContent(subtitleEl, subtitle);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return setMedia;
|
return setMedia;
|
||||||
|
Loading…
Reference in New Issue
Block a user