UI tweaking for message forwarding

This commit is contained in:
or-else
2021-10-04 15:44:22 -07:00
parent ab5f2179ea
commit 2e45ac6bf9
20 changed files with 358 additions and 350 deletions
+2 -3
View File
@@ -852,10 +852,9 @@ class MessagesView extends React.Component {
content = forwarded ?
Drafty.forwardedContent(content) :
typeof content == 'string' ?
Drafty.init(content) : content;
typeof content == 'string' ? Drafty.init(content) : content;
if (Drafty.isValid(content)) {
content = Drafty.preview(content, QUOTED_REPLY_LENGTH, undefined, forwarded != null);
content = Drafty.preview(content, QUOTED_REPLY_LENGTH, undefined, !forwarded);
} else {
// /!\ invalid content.
content = Drafty.append(Drafty.init('\u26A0 '),