Improved handling of secure message <style> CSS class names

This commit is contained in:
the-djmaze 2023-02-14 15:21:43 +01:00
parent 64818025e8
commit 5105f6d4c1
3 changed files with 22 additions and 19 deletions

View file

@ -25,9 +25,7 @@ import { LanguageStore } from 'Stores/Language';
import Remote from 'Remote/User/Fetch';
const
msgHtml = msg => cleanHtml(msg.html(), msg.attachments(),
SettingsUserStore.allowStyles() ? '#rl-msg-' + msg.hash : ''
),
msgHtml = msg => cleanHtml(msg.html(), msg.attachments(), '#rl-msg-' + msg.hash),
toggleTag = (message, keyword) => {
const lower = keyword.toLowerCase(),