fix(composer): Attachment check ignores uploads. Fixes #1190

This commit is contained in:
Ben Gotow 2016-02-02 10:15:14 -08:00
parent 7a8e10af0d
commit 001ccfff43

View file

@ -691,7 +691,7 @@ class ComposerView extends React.Component
bodyIsEmpty = draft.body is @_proxy.draftPristineBody() bodyIsEmpty = draft.body is @_proxy.draftPristineBody()
forwarded = Utils.isForwardedMessage(draft) forwarded = Utils.isForwardedMessage(draft)
hasAttachment = (draft.files ? []).length > 0 hasAttachment = (draft.files ? []).length > 0 or (draft.uploads ? []).length > 0
warnings = [] warnings = []