fix(archive): Remove optimizations that were breaking archive...

This commit is contained in:
Ben Gotow 2015-05-19 19:23:34 -07:00
parent e177746006
commit 4a4872ec27

View file

@ -98,7 +98,6 @@ ThreadListStore = Reflux.createStore
keyboardId = FocusedContentStore.keyboardCursorId('thread') keyboardId = FocusedContentStore.keyboardCursorId('thread')
for thread in selected for thread in selected
continue if thread.hasTagId('archive')
task = new AddRemoveTagsTask(thread, ['archive'], ['inbox']) task = new AddRemoveTagsTask(thread, ['archive'], ['inbox'])
Actions.queueTask(task) Actions.queueTask(task)
if thread.id is focusedId if thread.id is focusedId
@ -119,8 +118,7 @@ ThreadListStore = Reflux.createStore
focused = FocusedContentStore.focused('thread') focused = FocusedContentStore.focused('thread')
explicitOffset = if offset is "auto" then false else true explicitOffset = if offset is "auto" then false else true
return unless focused and not focused.hasTagId('archive') return unless focused
# Determine the current index # Determine the current index
index = @_view.indexOfId(focused.id) index = @_view.indexOfId(focused.id)