Page MenuHome GnuPG

fix refreshing list of drafts
Open, HighPublic

Description

the list of drafts doesn't get refreshed any more, neither on saving a new draft nor deleting one. the latter is especially critical, as drafts do get deleted, you just don't see it. so by attempting to delete a supposedly still present draft again, and again, you are deleting other drafts that "moved up" invisibly.

the actual stat of drafts is only visible after restarting the native client.

Event Timeline

m.eik triaged this task as High priority.Jun 13 2025, 8:28 AM
m.eik created this task.

There are actually two separate causes for this:

  • For newly created drafts, the native client fails to keep track of their existence. It will thus only "find" them, when it is re-started.
  • Beyond this, the only place where drafts are synced is the "info-fetched" command. This is sent in response to the "info" command, and that only gets sent when changing to a different email, or reconnection. Further, only reduced info (not drafts) is sent back to the web client, in case the message was already cached in the native client (WebsocketClient::info()).

Partial / WIP fix: branch work/tfry/refresh_draft_list

tfry mentioned this in Unknown Object (Maniphest Task).Mon, Dec 22, 9:25 AM