Skip to content

Update algorithm for history visible banner.#31577

Merged
kaylendog merged 5 commits intoelement-hq:developfrom
kaylendog:kaylendog/history-sharing/algorithm
Dec 19, 2025
Merged

Update algorithm for history visible banner.#31577
kaylendog merged 5 commits intoelement-hq:developfrom
kaylendog:kaylendog/history-sharing/algorithm

Conversation

@kaylendog
Copy link
Contributor

@kaylendog kaylendog commented Dec 18, 2025

  • The banner now only shows for rooms with shared or worldReadable history visibility.
  • The banner no longer shows in rooms in which the current user cannot send messages.

Checklist

- The banner now only shows for rooms with `shared` or `worldReadable`
  history visibility.
- The banner does not show in rooms in which the current user cannot
  send messages.
Comment on lines 92 to 98
visible:
featureEnabled &&
canSendMessages &&
!threadId &&
room.hasEncryptionStateEvent() &&
room.getHistoryVisibility() !== HistoryVisibility.Joined &&
isHistoryVisible &&
!acknowledged,
Copy link
Member

Choose a reason for hiding this comment

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

Documentation about visible is welcomed, there is a lot of checks here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a comment above detailing why each term is in the conjunction - might be a bit excessive? 1ab3184

Copy link
Member

Choose a reason for hiding this comment

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

Looks good to me

Copy link
Member

@florianduros florianduros Dec 19, 2025

Choose a reason for hiding this comment

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

this file shoudn't be committed

Copy link
Contributor Author

@kaylendog kaylendog Dec 19, 2025

Choose a reason for hiding this comment

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

Fixed in 1df66d6. Wondering if this should be in .gitignore?

kaylendog and others added 2 commits December 19, 2025 14:14
Co-authored-by: Florian Duros <florian.duros@ormaz.fr>
@kaylendog kaylendog added this pull request to the merge queue Dec 19, 2025
Merged via the queue into element-hq:develop with commit ce9c66b Dec 19, 2025
44 checks passed
@kaylendog kaylendog deleted the kaylendog/history-sharing/algorithm branch December 19, 2025 16:00
kaylendog added a commit that referenced this pull request Jan 26, 2026
kaylendog added a commit that referenced this pull request Jan 26, 2026
kaylendog added a commit that referenced this pull request Jan 26, 2026
github-merge-queue bot pushed a commit that referenced this pull request Jan 27, 2026
* Revert "Update algorithm for history visible banner. (#31577)"

This reverts commit ce9c66b.

* Revert "Update prop type & documentation for HistoryVisibleBanner and VM. (#31545)"

This reverts commit 4da149e.

* Revert "Prevent history visible banner from displaying in threads. (#31535)"

This reverts commit c7134e8.

* Revert "Implement UI for history visibility acknowledgement. (#31156)"

This reverts commit cff9119.
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.

2 participants