Skip to content

No confirmation when quitting during file upload this #3261

@romanansdfi

Description

@romanansdfi

Search before asking

  • I had searched in the issues and found no similar issues.

Operating System

  • macOS
  • Windows
  • Linux

Operating System Version

Window 11

It happens on the web browser too?

Yes, it happens on the web browser too

Rocket.Chat Desktop App Version

3.9.12

Rocket.Chat Server Version

6.7

Describe the bug

Description

When uploading a file in the Rocket.Chat Desktop client, closing the application immediately stops the upload without any confirmation or warning.

This can cause incomplete uploads and potential data loss.

Actual Behavior

The application closes immediately and the upload is interrupted.

Environment

Rocket.Chat Desktop Version: Latest
OS: Windows / macOS / Linux
Server Version: Any

How to Reproduce

Steps to Reproduce

  1. Open the Rocket.Chat Desktop app.
  2. Go to any channel or direct message.
  3. Upload a large file.
  4. Close the application before the upload completes.

Describe your Expected behavior

Expected Behavior

The application should show a confirmation dialog such as:
"A file upload is currently in progress. Are you sure you want to quit?"

Anything else

Possible Solution

Track ongoing uploads and show a confirmation dialog when the user attempts to close the application during an active upload.

Are you willing to submit a code contribution?

  • Yes, I am willing to submit a Pull Request!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions