mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-21 22:54:11 +08:00
fix(thread-list): Fix drag and drop to new folders/labels
This commit is contained in:
parent
182f6abb25
commit
b0ac02058b
1 changed files with 1 additions and 3 deletions
|
@ -202,8 +202,6 @@ class EmptyMailboxPerspective extends MailboxPerspective
|
|||
canTrashThreads: =>
|
||||
false
|
||||
|
||||
receiveThreads: (threadsOrIds) =>
|
||||
|
||||
|
||||
class CategoryMailboxPerspective extends MailboxPerspective
|
||||
constructor: (@_categories) ->
|
||||
|
@ -272,7 +270,7 @@ class CategoryMailboxPerspective extends MailboxPerspective
|
|||
# attached to this perspective
|
||||
DatabaseStore.modelify(Thread, threadsOrIds).then (threads) =>
|
||||
tasks = TaskFactory.tasksForApplyingCategories
|
||||
threads: threadsOrIds
|
||||
threads: threads
|
||||
categoriesToRemove: (accountId) -> _.filter(currentCategories, _.matcher({accountId}))
|
||||
categoryToAdd: (accountId) => _.findWhere(@_categories, {accountId})
|
||||
Actions.queueTasks(tasks)
|
||||
|
|
Loading…
Reference in a new issue