Skip to content

Moving drafts back and forth when closing it #13283

Description

@madbob

Steps to reproduce

  1. Open a Draft
  2. Do nothing (no changes, no modifications)
  3. Close Draft

Expected behavior

Nothing happens.

Actual behavior

Apparently nothing happens, but the Draft is anyway processed to local copy + move to IMAP even if totally unnecessary. This produce some unpleasant reloading effect in the view.

Mail app version

5.10

Nextcloud version

No response

Mailserver or service

No response

Operating system

No response

PHP engine version

None

Nextcloud memory caching

No response

Web server

None

Database

None

Additional info

The issue mostly lies in NewMessageModal: this.changed is always set to true as a mere effect of initing the body of the draft (in Composer), and this will trigger the whole local copy + move to IMAP process in onClose()

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions