From e66f9faf33ea98dbf0aaa340319ae751e78ebe8b Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Wed, 18 Apr 2018 11:25:45 -0700 Subject: [PATCH] MessageView refactor: reply -> quote --- js/views/message_view.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/js/views/message_view.js b/js/views/message_view.js index ca05f974a..7f55e991e 100644 --- a/js/views/message_view.js +++ b/js/views/message_view.js @@ -258,8 +258,8 @@ if (this.timeStampView) { this.timeStampView.remove(); } - if (this.replyView) { - this.replyView.remove(); + if (this.quoteView) { + this.quoteView.remove(); } // NOTE: We have to do this in the background (`then` instead of `await`) @@ -377,19 +377,19 @@ } const contact = this.model.getQuoteContact(); - if (this.replyView) { - this.replyView.remove(); - this.replyView = null; + if (this.quoteView) { + this.quoteView.remove(); + this.quoteView = null; } else if (contact) { this.listenTo(contact, 'change:color', this.renderQuote); } - this.replyView = new Whisper.ReactWrapperView({ + this.quoteView = new Whisper.ReactWrapperView({ className: 'quote-wrapper', Component: window.Signal.Components.Quote, props, }); - this.$('.inner-bubble').prepend(this.replyView.el); + this.$('.inner-bubble').prepend(this.quoteView.el); }, isImageWithoutCaption() { const attachments = this.model.get('attachments');