Skip to content

save drafts during compose or reply #514

Description

@tomholub

When I type my email or response, drafts should get continuously uploaded to Gmail API (can skip IMAP for now).

  • once a second, check if the content of the message, subject or recipients have changed compared to previous second
  • if it changed, and initiate an upload/update of draft in the background
  • (If it's the first upload of this draft, receive back the draft ID, and then use that draft id in subsequent updates of the draft)
  • if it didn't change, skip updating draft and wait until next run
  • cancel this timer when user leaves the screen through any means (back button or menu -> other place), but make sure to run this method one last time in the background while the screen is being switched, to ensure the last changes are saved
  • do not include attachments in these drafts (Gmail API is not good, would need to re-upload them each time)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions