Added feature to allow <style> in messages

This commit is contained in:
the-djmaze 2023-02-14 14:54:38 +01:00
parent aae3072209
commit 64818025e8
46 changed files with 154 additions and 6 deletions

View file

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