Skip to content

Prevent history visible banner from displaying in threads.#31535

Merged
kaylendog merged 3 commits intoelement-hq:developfrom
kaylendog:kaylendog/history-sharing/no-thread
Dec 15, 2025
Merged

Prevent history visible banner from displaying in threads.#31535
kaylendog merged 3 commits intoelement-hq:developfrom
kaylendog:kaylendog/history-sharing/no-thread

Conversation

@kaylendog
Copy link
Contributor

@kaylendog kaylendog commented Dec 12, 2025

Fixes #31530

Checklist

Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

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

A test would be good

@kaylendog kaylendog enabled auto-merge December 15, 2025 11:22
@kaylendog kaylendog added this pull request to the merge queue Dec 15, 2025
github-merge-queue bot pushed a commit that referenced this pull request Dec 15, 2025
* fix: Prevent history visible banner from displaying in threads.

* tests: Verify banner is not visible in threads.
Merged via the queue into element-hq:develop with commit c7134e8 Dec 15, 2025
32 checks passed
@kaylendog kaylendog deleted the kaylendog/history-sharing/no-thread branch December 15, 2025 12:18
return (
<div className={classes} ref={this.ref} role="region" aria-label={_t("a11y|message_composer")}>
<HistoryVisibleBanner room={this.props.room} />
<HistoryVisibleBanner room={this.props.room} threadId={threadId} />
Copy link
Member

Choose a reason for hiding this comment

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

[random question: would it not be easier to suppress the banner here, than having to thread threadId down into the viewmodel, and do the calculation there?]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm inclined to agree; my excuse for not writing that way is that I'm not entirely sure where we want to draw the line on what should and should not be included in the MVVM logic as opposed to in the component itself.

I opted to do this in the MVVM logic since it's where the rest of the logic is, and even if suppression here is technically more React-esque, doing it in MVVM does keep the component logic in one place.

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.

History sharing: "history may be shared" banner appears twice

3 participants