mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-20 22:23:53 +08:00
fix(message): fix collapse unset when new thread delta
The minification bit was erroneously getting reset when a new thread update delta came in due to an object equality check instead of an id check.
This commit is contained in:
parent
3f38c35d98
commit
e24e0f99f5
1 changed files with 1 additions and 1 deletions
|
@ -404,7 +404,7 @@ class MessageList extends React.Component
|
|||
|
||||
_onChange: =>
|
||||
newState = @_getStateFromStores()
|
||||
if @state.currentThread isnt newState.currentThread
|
||||
if @state.currentThread?.id isnt newState.currentThread?.id
|
||||
newState.minified = true
|
||||
@setState(newState)
|
||||
|
||||
|
|
Loading…
Reference in a new issue