Enable sending quoted replies, two fixes (#2284)

Enable sending quoted replies, two fixes
pull/1/head
Scott Nonnenberg 8 years ago committed by GitHub
commit adf91ee84c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -373,6 +373,7 @@
if (firstRun === true && deviceId != '1') { if (firstRun === true && deviceId != '1') {
if (!storage.get('theme-setting') && textsecure.storage.get('userAgent') === 'OWI') { if (!storage.get('theme-setting') && textsecure.storage.get('userAgent') === 'OWI') {
storage.put('theme-setting', 'ios'); storage.put('theme-setting', 'ios');
onChangeTheme();
} }
var syncRequest = new textsecure.SyncRequest(textsecure.messaging, messageReceiver); var syncRequest = new textsecure.SyncRequest(textsecure.messaging, messageReceiver);
Whisper.events.trigger('contactsync:begin'); Whisper.events.trigger('contactsync:begin');
@ -394,6 +395,12 @@
} }
} }
function onChangeTheme() {
var view = window.owsDesktopApp.appView;
if (view) {
view.applyTheme();
}
}
function onEmpty() { function onEmpty() {
initialLoadComplete = true; initialLoadComplete = true;

@ -1250,7 +1250,7 @@
// If we already have a quoted message, then we exit early. If we don't have it, // 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 // 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. // will enable us to scroll to it when the user clicks.
if (messages.quotedMessage) { if (message.quotedMessage) {
return; return;
} }

@ -456,8 +456,8 @@
const contact = this.model.isIncoming() ? this.model.getContact() : null; const contact = this.model.isIncoming() ? this.model.getContact() : null;
const attachments = this.model.get('attachments'); const attachments = this.model.get('attachments');
// TODO: used for the feature flag below const errors = this.model.get('errors');
// const hasErrors = errors && errors.length > 0; const hasErrors = errors && errors.length > 0;
const hasAttachments = attachments && attachments.length > 0; const hasAttachments = attachments && attachments.length > 0;
const hasBody = this.hasTextContents(); const hasBody = this.hasTextContents();
@ -469,8 +469,7 @@
avatar: (contact && contact.getAvatar()), avatar: (contact && contact.getAvatar()),
profileName: (contact && contact.getProfileName()), profileName: (contact && contact.getProfileName()),
innerBubbleClasses: this.isImageWithoutCaption() ? '' : 'with-tail', innerBubbleClasses: this.isImageWithoutCaption() ? '' : 'with-tail',
// TODO: Turn this on when we're ready to enable sending quoted replies hoverIcon: !hasErrors,
hoverIcon: false, // !hasErrors,
hasAttachments, hasAttachments,
reply: i18n('replyToMessage'), reply: i18n('replyToMessage'),
}, this.render_partials())); }, this.render_partials()));

Loading…
Cancel
Save