-
Notifications
You must be signed in to change notification settings - Fork 219
Add a banner to encrypted rooms with visible history. #4738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a banner to encrypted rooms with visible history. #4738
Conversation
- 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
ee76a1a to
6286d45
Compare
There was a problem hiding this 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:
|
|
||
| case elementCallBaseURLOverride | ||
|
|
||
| case acknowledgedHistoryVisibleRooms |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 🙃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eeep, I shall revert!
ElementX/Sources/Screens/RoomScreen/View/RoomScreenFooterView.swift
Outdated
Show resolved
Hide resolved
ElementX/Sources/Screens/RoomScreen/View/RoomScreenFooterView.swift
Outdated
Show resolved
Hide resolved
ElementX/Sources/Screens/RoomScreen/View/RoomScreenFooterView.swift
Outdated
Show resolved
Hide resolved
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 :) |
|
|
||
| case elementCallBaseURLOverride | ||
|
|
||
| case acknowledgedHistoryVisibleRooms |
There was a problem hiding this comment.
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 🙃
|



history_visibility!=joined. When cleared, this is recorded in the app's data store.history_visibility=joined, this flag is cleared.Issue: element-hq/element-meta#2875
Pull Request Checklist
UI changes have been tested with: