Mailspring/internal_packages
Juan Tejada f12896d54f fix(gmail-labels): Constraint so threads always belong to all,spam or trash
Summary:
- In Gmail all threads /must/ belong to either All Mail, Trash and Spam, and
  they are mutually exclusive, so we need to make sure that any add/remove
  label operation still guarantees that constraint
- Update ChangeLabelsTask to modify the set of labels to add and remove
  based on this rule
- Update tasksFor archiving, moving to trash and moving to spam so they
  don't affect any other labels in the thread, as gmail does.
- Removing from view /will/ remove any current labels, but will also
  move between all mail and trash as needed
- Remove Inbox, Trash and Spam from the CategoryPicker, as Gmail does

Test Plan: - Unit tests

Reviewers: drew, evan, bengotow

Reviewed By: drew, evan, bengotow

Differential Revision: https://phab.nylas.com/D2715
2016-03-10 14:13:31 -08:00
..
account-error-header fix(sync-errors): Handle account deltas indicating sync issues 2016-03-08 16:06:04 -08:00
account-sidebar
attachments
category-picker fix(gmail-labels): Constraint so threads always belong to all,spam or trash 2016-03-10 14:13:31 -08:00
composer
composer-emojis
composer-signature fix(signatures): Correct regex to properly replace existing signature 2016-03-09 12:06:27 -08:00
composer-spellcheck
composer-templates remove(popover): Remove Popover in favor of FixedPopover 2016-03-09 10:05:46 -08:00
composer-translate remove(popover): Remove Popover in favor of FixedPopover 2016-03-09 10:05:46 -08:00
events
github-contact-card fix(sidebar): minor sidebar style and padding tweaks 2016-03-10 15:06:59 -05:00
link-tracking fix(lint): fix linter issues 2016-03-08 13:02:10 -05:00
message-autoload-images
message-list fix(gmail-labels): Constraint so threads always belong to all,spam or trash 2016-03-10 14:13:31 -08:00
message-view-on-github
mode-switch 💄(sidebar): Replace icon with person 2016-03-10 11:15:52 -08:00
notification-mailto
notification-update-available
notifications
onboarding fix(onboarding): We should accept IPs for servers during auth 2016-03-10 12:08:05 -08:00
open-tracking fix(lint): fix linter issues 2016-03-08 13:02:10 -05:00
participant-profile fix(sidebar): design tweaks to sidebar 2016-03-10 15:06:59 -05:00
personal-level-indicators
phishing-detection
plugins 🎨(plugins): Add install button in preferences 2016-03-09 16:54:29 -08:00
preferences fix(sync-errors): Handle account deltas indicating sync issues 2016-03-08 16:06:04 -08:00
print
quick-schedule
screenshot-mode
search-bar
send-and-archive fix(gmail-labels): Constraint so threads always belong to all,spam or trash 2016-03-10 14:13:31 -08:00
send-later patch(save): Only save drafts when necessary, avoid sync-engine issues 2016-03-10 11:03:38 -08:00
sidebar-fullcontact feat(sidebar): Add thread list of currently selected participants 2016-03-09 14:33:31 -05:00
system-tray
theme-picker fix(theme-picker): Fix linter issues for ES6 2016-03-08 17:41:22 -08:00
thread-list fix(gmail-labels): Constraint so threads always belong to all,spam or trash 2016-03-10 14:13:31 -08:00
thread-snooze fix(sync): Pull down and associate metadata during initial sync 2016-03-10 11:06:06 -08:00
ui-dark
ui-darkside fix(themes): Fix linter issues and relink images 2016-03-10 11:54:05 -08:00
ui-light
ui-taiga 🎨(themes): Tweak UI for consistency 2016-03-09 16:20:33 -08:00
undo-redo
unread-notifications
worker-sync fix(sync): Pull down and associate metadata during initial sync 2016-03-10 11:06:06 -08:00
worker-ui