Fix eslint / prettier lint errors

This commit is contained in:
Ben Gotow 2017-10-20 16:28:17 -07:00
parent 3e2b17eb86
commit 9448c884ee
4 changed files with 11 additions and 4 deletions

View file

@ -8,8 +8,16 @@ Features:
- Mailspring now warns you if you the salutation in your email ("Hey Ben!") doesn't match the name of a recipient or appears misspelled.
- A new keyboard shortcut allows you to attach a file in the composer. (Ctrl-Shift-A by default!)
Fixes:
- The contact sidebar now loads correctly if you switch to a contact with no name.
- On Windows, Mailspring no longer needs to be restarted once before you can link a Gmail account.
- When replying to a message you sent in a thread, Mailspring no longer incorrectly addresses the new message to yourself.
- Mail rules now run correctly as new mail is received.
- The label picker is now correctly hidden if your selection includes threads from non-Gmail accounts.

View file

@ -43,7 +43,9 @@ export default class SidebarParticipantPicker extends React.Component {
_onSelectContact = event => {
const { sortedContacts } = this.state;
const [email, name] = event.target.value.split(SPLIT_KEY);
const contact = sortedContacts.find(c => (c.name === name || typeof c.name == "undefined" ) && c.email === email);
const contact = sortedContacts.find(
c => (c.name === name || typeof c.name === 'undefined') && c.email === email
);
return Actions.focusContact(contact);
};

View file

@ -3,7 +3,6 @@ import Message from '../models/message';
import * as ExtensionRegistry from '../../registries/extension-registry';
import DOMUtils from '../../dom-utils';
import QuotedHTMLTransformer from '../../services/quoted-html-transformer';
import InlineStyleTransformer from '../../services/inline-style-transformer';
import SanitizeTransformer from '../../services/sanitize-transformer';
import MessageUtils from '../models/message-utils';

View file

@ -1,6 +1,4 @@
import MailspringObservables from 'mailspring-observables';
import Label from './flux/models/label';
import CategoryStore from './flux/stores/category-store';
import { Template } from './components/scenario-editor-models';
export const ConditionTemplates = [