Skip to content

revert isPlausibleLastReadMessageId check - #6571

Merged
AndyScherzinger merged 2 commits into
masterfrom
revertIsPlausibleLastReadMessageChecks
Aug 25, 2026
Merged

revert isPlausibleLastReadMessageId check#6571
AndyScherzinger merged 2 commits into
masterfrom
revertIsPlausibleLastReadMessageChecks

Conversation

@mahibi

@mahibi mahibi commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

This PR will revert #6486

Checking the real data for a big instance unveiled i was pretty off with my assumption how high the difference between messageId and newestKnownRealMessageId could be.

Logging for C.N.C was:
"advanceLocalLastReadMessageIfNeeded, messageId (5748751) is implausibly higher than the conversation's newest known message id (5694085). We won't advance."

This seems reasonable but i wont go down that road to increase PLAUSIBLE_MESSAGE_ID_BUFFER every know and then when it turns out it is still too low.

The current logic might introduce more problems than it would solve. There should be other checks to make sure readmarkers don't make it to the server when they are wrong.

馃弫 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

@mahibi mahibi added this to the 25.1.0 milestone Aug 25, 2026
@mahibi mahibi self-assigned this Aug 25, 2026
@mahibi mahibi added the 3. to review Waiting for reviews label Aug 25, 2026
@mahibi

mahibi commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator Author

/backport to stable-25.0.x

@github-actions

Copy link
Copy Markdown
Contributor

APK file: https://github.com/nextcloud/talk-android/actions/runs/32834728895/artifacts/9559522657
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.
qrcode (please click on link to get QR code displayed)

Checking the real data for a big instance unveiled i was pretty off with my assumption how high the difference between messageId and newestKnownRealMessageId could be.

Logging for C.N.C was:
"advanceLocalLastReadMessageIfNeeded, messageId (5748751) is implausibly higher than the conversation's newest known message id (5694085). We won't advance."

I wont go down that road to increase PLAUSIBLE_MESSAGE_ID_BUFFER every know and then when it turns out it is still too low.

The curretn logic might introduce more problems than it would solve.
There should be other checks to make sure readmarkers don't make it to the server when they are wrong.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@AndyScherzinger
AndyScherzinger force-pushed the revertIsPlausibleLastReadMessageChecks branch from c86bd91 to 8bc413c Compare August 25, 2026 11:28
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
@github-actions

Copy link
Copy Markdown
Contributor

APK file: https://github.com/nextcloud/talk-android/actions/runs/32844907385/artifacts/9564607627
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.
qrcode (please click on link to get QR code displayed)

@AndyScherzinger
AndyScherzinger merged commit 3f29c9b into master Aug 25, 2026
16 of 18 checks passed
@AndyScherzinger
AndyScherzinger deleted the revertIsPlausibleLastReadMessageChecks branch August 25, 2026 14:43
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants