fix(thread-list): Email not ready when _prepareColumns runs

This commit is contained in:
Ben Gotow 2015-03-27 18:23:34 -07:00
parent 115f0b7735
commit 24b29fd397

View file

@ -64,14 +64,13 @@ ThreadList = React.createClass
</div>
_prepareColumns: ->
myEmail = NamespaceStore.current()?.emailAddress
labelComponents = (thread) =>
for label in @state.threadLabelComponents
LabelComponent = label.view
<LabelComponent thread={thread} />
lastMessageType = (thread) ->
myEmail = NamespaceStore.current()?.emailAddress
msgs = thread.messageMetadata
return 'unknown' unless msgs and msgs instanceof Array and msgs.length > 0
msg = msgs[msgs.length - 1]