fix(aliases): Show from field whenever aliases are present

This commit is contained in:
Ben Gotow 2015-12-11 19:04:14 -08:00
parent 433b218f48
commit d8b3a09599

View file

@ -574,10 +574,11 @@ class ComposerView extends React.Component
account = AccountStore.itemWithId @_proxy?.draft().accountId account = AccountStore.itemWithId @_proxy?.draft().accountId
@setState {enabledFields, account} @setState {enabledFields, account}
_shouldShowFromField: (draft) -> _shouldShowFromField: (draft) =>
return false unless draft return false unless draft
return AccountStore.items().length > 1 and account = AccountStore.itemWithId(draft.accountId)
draft.files.length is 0 return false unless account
return account.aliases.length > 1
_shouldEnableSubject: => _shouldEnableSubject: =>
return false unless @_proxy return false unless @_proxy