Skip to content

Fix to not show the call started info when there is no active call - #6503

Merged
mahibi merged 4 commits into
masterfrom
bugfix/noid/fixCallStartedInfoWhenNoCall2
Aug 18, 2026
Merged

Fix to not show the call started info when there is no active call#6503
mahibi merged 4 commits into
masterfrom
bugfix/noid/fixCallStartedInfoWhenNoCall2

Conversation

@mahibi

@mahibi mahibi commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

The "started a call" panel inside the chat had bugs that were introduced with #6226. It was only checking if the last message in the chat was a call message. But that could also be an old chatBlock, loaded via the search feature. So the call started panel would also show up in this case.

With the current PR, the decision to show the call started banner is solely based on the hasCall flag of the conversation. If a call message is loaded that is not older than 3 hours, it will trigger the needsRoomRefresh. This is debounced to not fire it too often.

For simplicity, for now the actor chip is removed from the call started panel.

🏁 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 marked this pull request as draft August 17, 2026 18:20
@mahibi mahibi self-assigned this Aug 17, 2026
mahibi added 4 commits August 18, 2026 09:28
The call-started banner was reconstructed by scanning whatever chat
message window happened to be loaded (tail, an anchor/context jump, or
a paginated history block). Since a loaded window's contents don't
necessarily reflect what's actually happening right now, this made the
banner reappear for calls that had long since ended, or even show up
in chats with no call at all.

Drive it from the conversation's own hasCall flag instead — the
server's authoritative answer to "is a call currently active" — and
make sure it stays fresh by triggering the existing room-refresh path
(already used for lobby/pin changes) on call-related system messages.
This drops the actor chip from the banner ("started by X"), since
hasCall alone can't identify who started the call; the "conversation
will be deleted after the call" warning is unaffected and keeps using
its own, narrower system-message check.

Assisted-by: Claude Sonnet 5 <noreply@anthropic.com>

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
this ensures room is not refreshed (server is bombed with refresh requests) when browsing the chat history

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
for all of them it makes sense to apply the age check

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
As we only rely on hasCall now, for simplicity the chip with the caller was removed.
It can be reimplemented in the future, but as the deriving from chat messages was quite buggy, we should keep it simple for now.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@mahibi
mahibi force-pushed the bugfix/noid/fixCallStartedInfoWhenNoCall2 branch from 3b6236e to 40d0a66 Compare August 18, 2026 09:18
@mahibi mahibi changed the title Bugfix/noid/fix call started info when no call2 Bugfix/noid/fix call started info when no call Aug 18, 2026
@mahibi mahibi added the 3. to review Waiting for reviews label Aug 18, 2026
@mahibi
mahibi requested a review from rapterjet2004 August 18, 2026 09:37
@mahibi
mahibi marked this pull request as ready for review August 18, 2026 09:38
@mahibi mahibi changed the title Bugfix/noid/fix call started info when no call Fix to not show the call started info when there is no active call Aug 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

APK file: https://github.com/nextcloud/talk-android/actions/runs/32120869099/artifacts/9319597164
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)

@mahibi mahibi added this to the 25.0.0 milestone Aug 18, 2026
@mahibi
mahibi merged commit cc391cd into master Aug 18, 2026
16 of 20 checks passed
@mahibi
mahibi deleted the bugfix/noid/fixCallStartedInfoWhenNoCall2 branch August 18, 2026 17:09
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