mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-22 23:23:54 +08:00
Summary: By default, the messages in a thread are now filtered to exclude ones moved to trash or spam. You can choose to view those messages by clicking the new bar in the message list. When you view your spam or trash, we only show the messages on those threads that have been marked as spam/trash. Test Plan: Run a couple new tests Reviewers: juan, evan Reviewed By: evan Differential Revision: https://phab.nylas.com/D2662
27 lines
985 B
JavaScript
27 lines
985 B
JavaScript
/** @babel */
|
|
import {ComponentRegistry} from 'nylas-exports';
|
|
import {ToolbarSnooze, BulkThreadSnooze} from './snooze-toolbar-components';
|
|
import SnoozeQuickActionButton from './snooze-quick-action-button'
|
|
import SnoozeMailLabel from './snooze-mail-label'
|
|
import SnoozeStore from './snooze-store'
|
|
|
|
|
|
export function activate() {
|
|
this.snoozeStore = new SnoozeStore()
|
|
ComponentRegistry.register(ToolbarSnooze, {role: 'message:Toolbar'});
|
|
ComponentRegistry.register(SnoozeQuickActionButton, {role: 'ThreadListQuickAction'});
|
|
ComponentRegistry.register(BulkThreadSnooze, {role: 'thread:BulkAction'});
|
|
ComponentRegistry.register(SnoozeMailLabel, {role: 'Thread:MailLabel'});
|
|
}
|
|
|
|
export function deactivate() {
|
|
ComponentRegistry.unregister(ToolbarSnooze);
|
|
ComponentRegistry.unregister(SnoozeQuickActionButton);
|
|
ComponentRegistry.unregister(BulkThreadSnooze);
|
|
ComponentRegistry.unregister(SnoozeMailLabel);
|
|
this.snoozeStore.deactivate()
|
|
}
|
|
|
|
export function serialize() {
|
|
|
|
}
|