mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-10 14:44:52 +08:00
fix(thread-list): Email not ready when _prepareColumns runs
This commit is contained in:
parent
115f0b7735
commit
24b29fd397
1 changed files with 1 additions and 2 deletions
|
@ -64,14 +64,13 @@ ThreadList = React.createClass
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
_prepareColumns: ->
|
_prepareColumns: ->
|
||||||
myEmail = NamespaceStore.current()?.emailAddress
|
|
||||||
|
|
||||||
labelComponents = (thread) =>
|
labelComponents = (thread) =>
|
||||||
for label in @state.threadLabelComponents
|
for label in @state.threadLabelComponents
|
||||||
LabelComponent = label.view
|
LabelComponent = label.view
|
||||||
<LabelComponent thread={thread} />
|
<LabelComponent thread={thread} />
|
||||||
|
|
||||||
lastMessageType = (thread) ->
|
lastMessageType = (thread) ->
|
||||||
|
myEmail = NamespaceStore.current()?.emailAddress
|
||||||
msgs = thread.messageMetadata
|
msgs = thread.messageMetadata
|
||||||
return 'unknown' unless msgs and msgs instanceof Array and msgs.length > 0
|
return 'unknown' unless msgs and msgs instanceof Array and msgs.length > 0
|
||||||
msg = msgs[msgs.length - 1]
|
msg = msgs[msgs.length - 1]
|
||||||
|
|
Loading…
Add table
Reference in a new issue