Mailspring/internal_packages
Evan Morikawa ca95d03c5d fix(composer): warn when empty body
Summary:
Fixes T2276
Since the new `QuotedHTMLParser` uses full HTML parsing, when you ask it
for the version of the document without the quoted nodes, it returns a
full html document. Unfortunately I forgot about the 2 <br> tags we
manually generate when creating a reply to a message with quoted text.

This is a pretty brittle solution, but considerably easier then checking
if the contents really are "blank". We could check innerText, but would
have to worry about img tags and other text-invisible-but-still-valid
elements. Since we control the generation of the reply in the
`DraftStore`, I think this is acceptable for now

Test Plan: edgehill --test

Reviewers: bengotow

Reviewed By: bengotow

Maniphest Tasks: T2276

Differential Revision: https://phab.nylas.com/D1730
2015-07-13 10:12:52 -04:00
..
account-sidebar fix(counts): Centralize handling of unread count / draft count 2015-06-26 16:02:08 -07:00
attachments fix(attachment-css): Tiny style tweaks 2015-06-29 17:25:00 -07:00
calendar-bar
composer fix(composer): warn when empty body 2015-07-13 10:12:52 -04:00
developer-bar feat(offline-mode, undo-redo): Tasks handle network errors better and retry, undo/redo based on tasks 2015-07-07 13:38:53 -04:00
file-list
inbox-contact-elements
message-list feat(quoted-text): New quoted text engine 2015-07-08 09:51:33 -07:00
message-templates feat(salesforce): new UI for Salesforce 2015-06-17 20:40:08 -07:00
mode-switch fix(assets): New toolbar icons, shadows to achieve less heavy edges on messages 2015-06-26 10:38:07 -07:00
notification-mailto
notification-update-available
notifications fix(nylas-api): Globally handle 401s and notify user they need to sign in 2015-06-17 12:29:49 -07:00
onboarding feat(api): add api-experimental.nylas.com as login option 2015-07-08 13:25:11 -07:00
search-bar fix(search): remove red search x 2015-06-18 09:43:18 -07:00
settings fix(getting-started): New menu item, sample package for devs 2015-07-06 14:23:51 -04:00
sidebar-fullcontact feat(salesforce): new UI for Salesforce 2015-06-17 20:40:08 -07:00
sidebar-inbox-internal Adding ATag component which prevents <a> tags from taking over edgehill when clicked. 2015-06-25 10:28:31 -07:00
thread-list Delete button now appears when drafts are selected 2015-07-09 13:28:02 -07:00
today fix(nylas-api): Globally handle 401s and notify user they need to sign in 2015-06-17 12:29:49 -07:00
tooltip
ui-dark
ui-light
unread-notifications