Skip to content

Conversation

@mahibi
Copy link
Collaborator

@mahibi mahibi commented Jan 29, 2026

Related commits that will be fixed by this PR are:

restoreState() must not be triggered by GetCapabilitiesUpdateState

However, way too many things rely on getCapabilitiesViewState here which is not necessary and should be changed. Also LiveData should be replaced with flow. I wont do this now to keep changes for RC2 minimal.

This PR will also fix the following bug:

  1. start permanent voice recording
  2. cancel it
  3. bug: message input buttons not clickable anymore

🏁 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?)

@mahibi mahibi added this to the 23.1.0 milestone Jan 29, 2026
@mahibi mahibi self-assigned this Jan 29, 2026
@mahibi mahibi added the 3. to review Waiting for reviews label Jan 29, 2026
restoreState() must not be triggered by GetCapabilitiesUpdateState

however, way too many things rely on getCapabilitiesViewState here which is not necessary and should be changed. Also LiveData should be replaced with flow.

This change will also fix the following bug:
1. start permanent voice recording
2. cancel it
bug: message input buttons not clickable anymore

Deleted unused observeOnce method.

Signed-off-by: Marcel Hibbe <[email protected]>
@mahibi mahibi force-pushed the bugfix/noid/fixWipedMessageInput branch from 61db092 to 4d11c42 Compare January 29, 2026 10:10
@mahibi mahibi requested review from rapterjet2004 and sowjanyakch and removed request for rapterjet2004 January 29, 2026 10:11
@mahibi
Copy link
Collaborator Author

mahibi commented Jan 29, 2026

/backport to stable-23.0

@github-actions
Copy link
Contributor

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/5768.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@github-actions
Copy link
Contributor

Codacy

Lint

TypemasterPR
Warnings99104
Errors02

SpotBugs

CategoryBaseNew
Bad practice66
Correctness1010
Dodgy code5454
Internationalization33
Malicious code vulnerability33
Performance44
Security11
Total8181

Lint increased!

Copy link
Member

@AndyScherzinger AndyScherzinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested successfully 👍

@mahibi mahibi merged commit 6fd4006 into master Jan 29, 2026
15 of 19 checks passed
@mahibi mahibi deleted the bugfix/noid/fixWipedMessageInput branch January 29, 2026 12:18
@mahibi
Copy link
Collaborator Author

mahibi commented Jan 29, 2026

/backport to stable-23.0

@backportbot
Copy link

backportbot bot commented Jan 29, 2026

The backport to stable-23.0 failed. Please do this backport manually.

# Switch to the target branch and update it
git checkout stable-23.0
git pull origin stable-23.0

# Create the new backport branch
git checkout -b backport/5768/stable-23.0

# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick 4d11c42a

# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/5768/stable-23.0

Error: Failed to create pull request: Validation Failed: {"resource":"PullRequest","code":"custom","message":"A pull request already exists for nextcloud:backport/5768/stable-23.0."} - https://docs.github.com/rest/pulls/pulls#create-a-pull-request


Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants