mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Change check
This commit is contained in:
parent
af5a008d0f
commit
e99cd41ed0
@ -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 => {
|
t.mapSideEffect(vm => vm.body, body => {
|
||||||
while (shouldRemove(container.lastChild)) {
|
while (shouldRemove(container.lastChild)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user