Change check

This commit is contained in:
RMidhunSuresh 2022-01-06 22:01:41 +05:30
parent af5a008d0f
commit e99cd41ed0

View file

@ -39,7 +39,7 @@ export class TextMessageView extends BaseMessageView {
}
}));
const shouldRemove = (element) => element && element.className !== "ReplyPreviewView" && element.nodeName !== "#comment";
const shouldRemove = (element) => element?.nodeType === Node.ELEMENT_NODE && element.className !== "ReplyPreviewView";
t.mapSideEffect(vm => vm.body, body => {
while (shouldRemove(container.lastChild)) {