Skip to content

fix(chat): show the first message of an empty conversation - #7067

Merged
AndyScherzinger merged 1 commit into
masterfrom
firstMessageInClassifiedConversation
Nov 19, 2026
Merged

AndyScherzinger merged 1 commit into
masterfrom
firstMessageInClassifiedConversation

Conversation

@mahibi

@mahibi mahibi commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

A conversation without any messages, such as a new classified one where all messages expired, has no chat block after the initial load. With the high-performance backend the first message then never showed: the signaling message had no block to extend, and the insurance requests were skipped because no HTTP-synced anchor existed yet.

An empty answer to the initial newest-messages fetch now anchors the insurance requests at 0. A signaling message that arrives while no chat block exists is fetched via HTTP, which creates the block.

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

A conversation without any messages, such as a new classified one where all messages expired,
has no chat block after the initial load. With the high-performance
backend the first message then never showed: the signaling message
had no block to extend, and the insurance requests were skipped
because no HTTP-synced anchor existed yet.

An empty answer to the initial newest-messages fetch now anchors the
insurance requests at 0. A signaling message that arrives while no
chat block exists is fetched via HTTP, which creates the block.

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 18, 2026
@mahibi mahibi self-assigned this Nov 18, 2026
@mahibi mahibi added the 3. to review Waiting for reviews label Nov 18, 2026
@mahibi
mahibi requested a review from rapterjet2004 November 18, 2026 11:08
@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 4109567
Version 7067
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.

@AndyScherzinger
AndyScherzinger merged commit 4e33cb5 into master Nov 19, 2026
20 of 22 checks passed
@AndyScherzinger
AndyScherzinger deleted the firstMessageInClassifiedConversation branch November 19, 2026 06:17
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.

3 participants