Skip to content

Conversation

@kaylendog
Copy link
Contributor

@kaylendog kaylendog commented Nov 12, 2025

  • Adds a dismissable alert that is displayed whenever the user opens a room with history_visibility != joined. When cleared, this is recorded in the app's data store.
  • When opening a room with history_visibility = joined, this flag is cleared.

Issue: element-hq/element-meta#2875

Pull Request Checklist

UI changes have been tested with:

  • iPhone and iPad simulators in portrait and landscape orientations.
  • Dark mode enabled and disabled.
  • Various sizes of dynamic type.
  • Voiceover enabled - I don't believe I can do this from the simulator.

@kaylendog kaylendog self-assigned this Nov 12, 2025
@CLAassistant
Copy link

CLAassistant commented Nov 12, 2025

CLA assistant check
All committers have signed the CLA.

@kaylendog kaylendog added the pr-feature for a new feature label Nov 12, 2025
@kaylendog kaylendog marked this pull request as ready for review December 8, 2025 14:46
@kaylendog kaylendog requested a review from a team as a code owner December 8, 2025 14:46
@kaylendog kaylendog requested review from stefanceriu and removed request for a team December 8, 2025 14:46
- Adds a dismissable alert that is displayed whenever the user
  opens a room with `history_visibility` != `joined`. When cleared,
  this is recorded in the app's data store.
- When opening a room with `history_visibility` = `joined`, this
  flag is cleared.

Issue: element-hq/element-meta#2875
@kaylendog kaylendog force-pushed the kaylendog/history-sharing/alert branch from ee76a1a to 6286d45 Compare December 8, 2025 15:08
@pixlwave pixlwave requested review from pixlwave and removed request for stefanceriu December 10, 2025 15:38
Copy link
Member

@pixlwave pixlwave left a comment

Choose a reason for hiding this comment

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

Very nice, thanks @kaylendog! Comments are mainly just minor Swift style preferences but we do need to include the translated string before merging this :)

Also worth noting that we all run Xcode configured like so, so that new lines retain their respective indentation:

Screenshot 2025-12-10 at 4 11 46 pm


case elementCallBaseURLOverride

case acknowledgedHistoryVisibleRooms
Copy link
Member

Choose a reason for hiding this comment

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

Super minor nit: Could we put this under hasSeenNewSoundBanner so its position in the keys kind of reflects its position in the settings.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah! I did not see these, I think it would be nice to rename this to hasSeenHistoryVisibleBannerRooms. Addressed in c59a88d.

Copy link
Member

Choose a reason for hiding this comment

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

Usually we would prefix with is/has/can when the value is a Bool, so similarly to seenInvites I think this should drop the has. If I'm honest, I think that acknowledgedHistoryVisibleRooms was probably the clearest name for this anyway 🙃

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Eeep, I shall revert!

@pixlwave
Copy link
Member

Voiceover enabled - I don't believe I can do this from the simulator.

FWIW, a close approximation is to use Xcode | Open Developer Tool | Accessibility Inspector and check the labels in the simulator that way, but seeing as this is based on existing views I wouldn't worry about it too much :)

@kaylendog kaylendog requested a review from pixlwave December 11, 2025 12:50

case elementCallBaseURLOverride

case acknowledgedHistoryVisibleRooms
Copy link
Member

Choose a reason for hiding this comment

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

Usually we would prefix with is/has/can when the value is a Bool, so similarly to seenInvites I think this should drop the has. If I'm honest, I think that acknowledgedHistoryVisibleRooms was probably the clearest name for this anyway 🙃

@sonarqubecloud
Copy link

@pixlwave pixlwave changed the title Add alert to encrypted rooms with visible history (iOS). Add a banner to encrypted rooms with visible history. Dec 11, 2025
@pixlwave pixlwave merged commit aa525a5 into element-hq:develop Dec 11, 2025
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-feature for a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants