diff --git a/js/background.js b/js/background.js index 393f534751..846fda7d13 100644 --- a/js/background.js +++ b/js/background.js @@ -373,6 +373,7 @@ if (firstRun === true && deviceId != '1') { if (!storage.get('theme-setting') && textsecure.storage.get('userAgent') === 'OWI') { storage.put('theme-setting', 'ios'); + onChangeTheme(); } var syncRequest = new textsecure.SyncRequest(textsecure.messaging, messageReceiver); Whisper.events.trigger('contactsync:begin'); @@ -394,6 +395,12 @@ } } + function onChangeTheme() { + var view = window.owsDesktopApp.appView; + if (view) { + view.applyTheme(); + } + } function onEmpty() { initialLoadComplete = true; diff --git a/js/models/conversations.js b/js/models/conversations.js index c5c3a4cb9f..03182f3c8c 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -1250,7 +1250,7 @@ // If we already have a quoted message, then we exit early. If we don't have it, // then we'll continue to look again for an in-memory message to use. Why? This // will enable us to scroll to it when the user clicks. - if (messages.quotedMessage) { + if (message.quotedMessage) { return; } diff --git a/js/views/message_view.js b/js/views/message_view.js index 3c9a122b21..458883cb82 100644 --- a/js/views/message_view.js +++ b/js/views/message_view.js @@ -456,8 +456,8 @@ const contact = this.model.isIncoming() ? this.model.getContact() : null; const attachments = this.model.get('attachments'); - // TODO: used for the feature flag below - // const hasErrors = errors && errors.length > 0; + const errors = this.model.get('errors'); + const hasErrors = errors && errors.length > 0; const hasAttachments = attachments && attachments.length > 0; const hasBody = this.hasTextContents(); @@ -469,8 +469,7 @@ avatar: (contact && contact.getAvatar()), profileName: (contact && contact.getProfileName()), innerBubbleClasses: this.isImageWithoutCaption() ? '' : 'with-tail', - // TODO: Turn this on when we're ready to enable sending quoted replies - hoverIcon: false, // !hasErrors, + hoverIcon: !hasErrors, hasAttachments, reply: i18n('replyToMessage'), }, this.render_partials()));