temp(composer): Do not allow user to switch accounts if files have been attached to draft

This commit is contained in:
Ben Gotow 2015-08-24 17:39:41 -07:00
parent a099e677e0
commit 93648dccd4

View file

@ -474,13 +474,13 @@ class ComposerView extends React.Component
files: draft.files
subject: draft.subject
body: draft.body
showfrom: not draft.replyToMessageId? and draft.files.length is 0
if !@state.populated
_.extend state,
showcc: not _.isEmpty(draft.cc)
showbcc: not _.isEmpty(draft.bcc)
showsubject: @_shouldShowSubject()
showfrom: not draft.replyToMessageId?
showQuotedText: @isForwardedMessage()
populated: true