mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-13 11:38:31 +08:00
fix(unread): Mark as read twice without visiting another unread thread
This commit is contained in:
parent
3edf4854cd
commit
5ad35cf4d0
1 changed files with 11 additions and 10 deletions
|
@ -163,10 +163,11 @@ class MessageStore extends NylasStore
|
|||
# Override canBeUndone to return false so that we don't see undo
|
||||
# prompts (since this is a passive action vs. a user-triggered
|
||||
# action.)
|
||||
return unless @_thread and @_thread.unread
|
||||
return if not @_thread
|
||||
return if @_lastLoadedThreadId is @_thread.id
|
||||
@_lastLoadedThreadId = @_thread.id
|
||||
|
||||
if @_thread.unread
|
||||
markAsReadDelay = NylasEnv.config.get('core.reading.markAsReadDelay')
|
||||
markAsReadId = @_thread.id
|
||||
return if markAsReadDelay < 0
|
||||
|
|
Loading…
Reference in a new issue