Skip to content

Cancelling the upload dialog while the /config call is in flight doesn't stop the upload dialog from appearing #24667

@turt2live

Description

@turt2live

Steps to reproduce

  1. Copy an image to your clipboard
  2. Ensure your media repo won't respond to /media/r0/config for a while (ie: responds within 40 seconds, but not before)
  3. Paste the image to a room
  4. Become impatient and click the spinner away
  5. Navigate to other rooms
  6. Sudden upload dialog appears

Outcome

What did you expect?

The upload operation to be cancelled.

What happened instead?

An upload dialog appears. The default action is also "Upload", so if I'm typing a message the dialog gets approved when I hit Space or Enter, leaving me to wonder where my screenshot got uploaded to.

Operating system

Windows 10

Application version

Element Nightly version: 0.0.1-nightly.2023022401 Olm version: 3.2.12

How did you install the app?

The Internet

Homeserver

t2l.io

Will you send logs?

No

Metadata

Metadata

Assignees

Labels

A-File-UploadAttachments and file uploadsO-UncommonMost users are unlikely to come across this or unexpected workflowS-MinorImpairs non-critical functionality or suitable workarounds existT-Defect

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions