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