fix small crash bug

This commit is contained in:
camila314 2023-11-25 11:48:10 -06:00
parent 5240085285
commit 5b647c307d

View file

@ -232,6 +232,9 @@ export default definePlugin({
dismissible: true
});
if (msg == null)
return [null];
msg.props.children[0].props.children.props.onClick = () => onDelete(e);
msg.props.children[1].props.children[1].props.message.customRenderedContent = {
content: highlightKeywords(e.content, regexes)