Skip to content

fix(chat): don't upload voice message when only permissions were requested - #7052

Merged
mahibi merged 1 commit into
masterfrom
fixInitialUplaodFailOfVoiceMessage
Nov 16, 2026
Merged

mahibi merged 1 commit into
masterfrom
fixInitialUplaodFailOfVoiceMessage

Conversation

@mahibi

@mahibi mahibi commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

When the record button was held without audio or storage permissions, only the permission request was triggered. Releasing the button still went through the send path because the "recording in progress" LiveData is null initially, which resulted in an upload of a non-existing file and a "Failed to upload file" notification.

Track whether the current touch gesture actually started a recording and skip up/cancel/move handling otherwise. Additionally, don't upload when no voice record file exists.

Assisted-by: Claude Code:claude-opus-5-5

🖼️ Screenvideos

Before

errorAfterGrantingPermissions.mp4

After

noErrorAfterPermissionGrant.mp4

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

…ested

When the record button was held without audio or storage permissions,
only the permission request was triggered. Releasing the button still
went through the send path because the "recording in progress" LiveData
is null initially, which resulted in an upload of a non-existing file
and a "Failed to upload file" notification.

Track whether the current touch gesture actually started a recording and
skip up/cancel/move handling otherwise. Additionally, don't upload when
no voice record file exists.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@mahibi mahibi added this to the 26.0.0 milestone Nov 16, 2026
@mahibi
mahibi requested a review from rapterjet2004 November 16, 2026 12:45
@mahibi mahibi self-assigned this Nov 16, 2026
@mahibi mahibi added the 3. to review Waiting for reviews label Nov 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Codacy

Lint

TypemasterPR
Warnings1716
Errors00

SpotBugs

CategoryBaseNew
Bad practice77
Correctness88
Dodgy code4040
Internationalization33
Malicious code vulnerability33
Performance77
Security1111
Total7979

@github-actions

Copy link
Copy Markdown
Contributor

📱 QA build

Download app-qa-debug.apk
QR code Open the QR code for this download
Commit e049990
Version 7052
Available until 7 days after this build

The QA build installs alongside a released Nextcloud app, so you can keep
using your existing install while testing.

Downloading the file requires a GitHub account, so open this link on the
device you want to test on, or transfer the APK to it.

@mahibi
mahibi merged commit be2366d into master Nov 16, 2026
20 of 21 checks passed
@mahibi
mahibi deleted the fixInitialUplaodFailOfVoiceMessage branch November 16, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants