Skip to content

fix(chat): keep an edit the server accepted with 202 - #7071

Open
mahibi wants to merge 1 commit into
masterfrom
bugfix/7044/bugEditingASentMessageShowsTheModifiedContentLocallyButItQui
Open

mahibi wants to merge 1 commit into
masterfrom
bugfix/7044/bugEditingASentMessageShowsTheModifiedContentLocallyButItQui

Conversation

@mahibi

@mahibi mahibi commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

WIP. do not merge or review yet.
i just set the ready for review state so an apk is produced to test for #7044


The server answers an edit with 202 instead of 200 when a bot or Matterbridge is configured for the conversation. Only 200 counted as accepted, so the optimistic edit was reverted although the server had stored it. As the edit's system message was already handled via signaling, no later sync restored the edited text.

Fixes #7044

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

🏁 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

The server answers an edit with 202 instead of 200 when a bot or
Matterbridge is configured for the conversation. Only 200 counted as
accepted, so the optimistic edit was reverted although the server had
stored it. As the edit's system message was already handled via
signaling, no later sync restored the edited text.

Fixes #7044

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@github-actions

Copy link
Copy Markdown
Contributor

📱 QA build

Download app-qa-debug.apk
QR code Open the QR code for this download
Commit 8cf8776
Version 7071
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.

@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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Editing a sent message shows the modified content locally, but it quickly reverts to the original content (the recipient sees the edited content)

1 participant