From 3e4ef8347f5c2e10351d9f43308329001f6d1f72 Mon Sep 17 00:00:00 2001 From: aforge Date: Sun, 5 Sep 2021 21:15:06 +0300 Subject: [PATCH] Rendering changes. --- src/views/messages-view.jsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/messages-view.jsx b/src/views/messages-view.jsx index cfe753b9..711dff5e 100644 --- a/src/views/messages-view.jsx +++ b/src/views/messages-view.jsx @@ -1244,6 +1244,10 @@ function quotePreviewFmt(fmt, ent) { case 'EX': // Make it an icon. new_fmt.tp = null; + if (new_fmt.at == -1) { + // Render it normally. + new_fmt.at = 0; + } return [new_fmt, {tp: 'IC', data: { orig: 'EX', iconName: 'attachment'}}]; case 'QQ': // Quote/citation. @@ -1318,8 +1322,8 @@ function draftyFormatter(style, data, values, key) { break; case 'MN': // Mention - if (data && data.hasOwnProperty('color')) { - attr.className = 'mn-dark-color' + data.color; + if (data && data.hasOwnProperty('colorId')) { + attr.className = 'mn-dark-color' + data.colorId; } break; case 'FM':