-
Notifications
You must be signed in to change notification settings - Fork 175
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
Feature : room settings - security and privacy #4212
Merged
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
002325c
feat(security&privacy) : first implementation of ui
ganfra d354144
change(room details) : update room details with new sections organisa…
ganfra a781cc0
feat(security & privacy) : introduce EditRoomAddress screen
ganfra b549400
feat(security&privacy) : expose new sdk methods
ganfra c391b5b
feat(security&privacy) : get data from sdk
ganfra 129eb45
feat(security&privacy) : introduce navigator
ganfra 9faa305
feat(room address) : extract some reusable code
ganfra f8cd8b3
feat(security&privacy) : start handling edition of room address
ganfra b7831f4
feat(security&privacy) : expose methods from sdk to update alias and …
ganfra 65e5447
feat(security&privacy) : manage save action for edit room address
ganfra 0e6c86f
feat(privacy&security) : extract some code for address management
ganfra 392299d
feat(security&privacy) : update the save address algorithm
ganfra 7eda945
feat(security&privacy) : manage encryption settings
ganfra 19d49a3
feat(security&privacy) : expose more methods from sdk
ganfra edee18a
feat(security&privacy) : manage save action and some edge cases.
ganfra 75fef6b
feat(security&privacy) : introduce permissions and use in RoomDetails
ganfra 88fce64
feat(security&privacy) : use permissions and improve save
ganfra ba0a857
feat(security&privacy) : update strings
ganfra c07a7d9
feat(security&privacy) : make the whole RoomDirectoryVisibility item …
ganfra fdc4f1b
feat(security&privacy) : start writing tests
ganfra c0c7d5b
feat(security&privacy) : write View tests
ganfra 876d06f
feat(security&privacy) : add all tests for EditRoomAddress classes
ganfra d992f38
feat(security&privacy) : clean code
ganfra 58918b1
feat(security&privacy) : update canShowSecurityAndPrivacy check
ganfra d586bdc
feat(security&privacy) : some more clean up
ganfra 706b298
feat(security&privacy) : fix tests after some rework landed
ganfra 82f5926
Update screenshots
ElementBot 8880eed
feat(security&privacy) : improve and document code after PR review.
ganfra 15f2d0b
feat(security&privacy) : add more previews
ganfra c10da01
Update screenshots
ElementBot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
...pi/src/main/kotlin/io/element/android/libraries/matrix/api/createroom/JoinRuleOverride.kt
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
.../api/src/main/kotlin/io/element/android/libraries/matrix/api/createroom/RoomVisibility.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
...main/kotlin/io/element/android/libraries/matrix/api/room/history/RoomHistoryVisibility.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* Copyright 2025 New Vector Ltd. | ||
* | ||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial | ||
* Please see LICENSE files in the repository root for full details. | ||
*/ | ||
|
||
package io.element.android.libraries.matrix.api.room.history | ||
|
||
sealed interface RoomHistoryVisibility { | ||
/** | ||
* Previous events are accessible to newly joined members from the point | ||
* they were invited onwards. | ||
* | ||
* Events stop being accessible when the member's state changes to | ||
* something other than *invite* or *join*. | ||
*/ | ||
data object Invited : RoomHistoryVisibility | ||
|
||
/** | ||
* Previous events are accessible to newly joined members from the point | ||
* they joined the room onwards. | ||
* Events stop being accessible when the member's state changes to | ||
* something other than *join*. | ||
*/ | ||
data object Joined : RoomHistoryVisibility | ||
|
||
/** | ||
* Previous events are always accessible to newly joined members. | ||
* | ||
* All events in the room are accessible, even those sent when the member | ||
* was not a part of the room. | ||
*/ | ||
data object Shared : RoomHistoryVisibility | ||
|
||
/** | ||
* All events while this is the `HistoryVisibility` value may be shared by | ||
* any participating homeserver with anyone, regardless of whether they | ||
* have ever joined the room. | ||
*/ | ||
data object WorldReadable : RoomHistoryVisibility | ||
|
||
/** | ||
* A custom visibility value. | ||
*/ | ||
data class Custom(val value: String) : RoomHistoryVisibility | ||
} |
28 changes: 28 additions & 0 deletions
28
...i/src/main/kotlin/io/element/android/libraries/matrix/api/roomdirectory/RoomVisibility.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright 2025 New Vector Ltd. | ||
* | ||
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial | ||
* Please see LICENSE files in the repository root for full details. | ||
*/ | ||
|
||
package io.element.android.libraries.matrix.api.roomdirectory | ||
|
||
/** | ||
* Enum class representing the visibility of a room in the room directory. | ||
*/ | ||
sealed interface RoomVisibility { | ||
/** | ||
* Indicates that the room will be shown in the published room list. | ||
*/ | ||
data object Public : RoomVisibility | ||
|
||
/** | ||
* Indicates that the room will not be shown in the published room list. | ||
*/ | ||
data object Private : RoomVisibility | ||
|
||
/** | ||
* A custom value that's not present in the spec. | ||
*/ | ||
data class Custom(val value: String) : RoomVisibility | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🦀 spotted!