use new method for replies

This commit is contained in:
or-else
2021-12-19 11:51:24 -08:00
parent 9582a9f2cd
commit 1d59d29519
7 changed files with 45 additions and 41 deletions
+1 -3
View File
@@ -853,8 +853,6 @@ class MessagesView extends React.Component {
// senderId: UID of the sender of the source message.
// senderName: full name of the sender of the original message.
handlePickReply(seq, content, forwarded, senderId, senderName) {
console.log("forwarded message:", forwarded);
this.setState({reply: null});
if (!seq || !content) {
@@ -863,7 +861,7 @@ class MessagesView extends React.Component {
content = typeof content == 'string' ? Drafty.init(content) : content;
if (Drafty.isValid(content)) {
content = Drafty.preview(content, QUOTED_REPLY_LENGTH, undefined, forwarded);
content = Drafty.replyContent(content, QUOTED_REPLY_LENGTH);
} else {
// /!\ invalid content.
content = Drafty.append(Drafty.init('\u26A0 '),