fix(thread-list): Fix drag and drop to new folders/labels

This commit is contained in:
Juan Tejada 2016-02-04 18:18:22 -08:00
parent 182f6abb25
commit b0ac02058b

View file

@ -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)