mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 10:12:00 +08:00
fix(archive): Remove optimizations that were breaking archive...
This commit is contained in:
parent
e177746006
commit
4a4872ec27
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue