Security and privacy part 2 (#3637)

* handling the history visibility flag

* better logic to handle visibility

* better handling of the visibility options state

* added some copies, and the public room directory

visibility state

* completed the UI

added also the preview tests

* improved the handling of the directory visibility

* added the space users case

and improved handling of the access -> vsibility reaction. Also added a simple error handling for the public directory toggle

* added the edit room address view

but is missing its full implementation

* implement the UI for the edit room address screen

* implemented error checking

when editing the address

* updated preview tests and improved code

* typo fix

* Fix various issues after rebasing.

* Fix build errors and broken snapshot tests

* Adopt latest room privacy and canonical alias setting APIs

* Add support for creating and editing the room's alias.

* Add support for saving room privacy setting changes.

* Fix room alias screen snapshot tests following recent changes.

---------

Co-authored-by: Stefan Ceriu <stefanc@matrix.org>
This commit is contained in:
Mauro
2025-01-15 10:50:08 +01:00
committed by GitHub
parent cfb01d61a0
commit e3ad925285
61 changed files with 2216 additions and 136 deletions
@@ -143,6 +143,12 @@ extension PreviewTests {
}
}
func test_editRoomAddressScreen() async throws {
for preview in EditRoomAddressScreen_Previews._allPreviews {
try await assertSnapshots(matching: preview)
}
}
func test_emojiPickerScreenHeaderView() async throws {
for preview in EmojiPickerScreenHeaderView_Previews._allPreviews {
try await assertSnapshots(matching: preview)
@@ -785,6 +791,12 @@ extension PreviewTests {
}
}
func test_securityAndPrivacyScreen() async throws {
for preview in SecurityAndPrivacyScreen_Previews._allPreviews {
try await assertSnapshots(matching: preview)
}
}
func test_separatorMediaEventsTimelineView() async throws {
for preview in SeparatorMediaEventsTimelineView_Previews._allPreviews {
try await assertSnapshots(matching: preview)
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ed820a7cbe2fee94312fdc4300be84340e2b83c420617785236966591f7b0ad8
size 115635
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:084b4cea984f0b2952cb57776278d6866260b6fa72b472c68508b46f6be9d0fc
size 120798
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dd9afbafee47a33dfa211d290b3737873fb55e8706ec7b6cf3c74f1820da86ce
size 103048
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f7beccc3c1111498a63be05cb11da67baf56146c893f9fa329089dd375ce69a5
size 103075
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:584ca7225cf3d8e129ac815d5893ffffef9df93c647c4f16d1155eb96f7a1679
size 134771
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f2cc05f40aad619c43b543c947e557174964cd860fcfa80257fa766aa88ebfad
size 143415
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ef1930d51d5f0634aa06250abe7740029b3d8fc2f3ba319653e54aaf3bacccfb
size 111971
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d3552554ad8eb6998cd13a1b329d1e823563e18f04de4afff9b2b2fee4275a0a
size 111972
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c1298b7f77d89e0a0409b56636d36ccdcc38c765fb709b19031d8eb6d7cccd1e
size 70278
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:60ecce7bb6772f0693322b77b88125f7010bf8236a3f04747e856ad03e46e65a
size 73972
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b8bb258d0a65f5ab6bd36ce68909417e220b7336bac504ed9ba1c9ca77e3dc8b
size 54967
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3231612e474ca5ed2a5681162fecabada27d3407b28be708c7f43d9efa80aaa7
size 54754
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5bd8f03a48240719376911cfcbb0b972e7f6295c0d052b93d33948606e88ce0b
size 93574
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a350ef87ce4dbce1b2020bed6932aee53fe34e118e72045f68d9a857879ed135
size 101676
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7dc96671de7a8e204694533122addb9a64f705bf1818d6a0f46a1ba535571a1e
size 68334
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dcd12e17832a79ab7a4f7bbcb7973e1ab267e2a0d40b850b5dac6b342bdf4eb6
size 68151
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d0f8cd3542eb8dd9c7dbb553d37a154cd0cc932333e31ad2e69a37b2b8acacf7
size 163760
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4396683e4cab8545f4b66c415d45d1715cb6ff1bb0cb50eb99550c8b33f9fca1
size 189113
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cc13f5619bcf5ded950861338375147fce1859e992680de40b279b805a3ae987
size 217894
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:527832138f736cd387b754335932b59c5e34625fe26a2f2d24780cc153ff526b
size 217589
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:19e542bbd4a2cb27b587e90432a4499ee2cad27d4a859139eefaee2a09165c69
size 192471
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:65f2a4d8f484853aec99db22f3edd79d3aeb22b86c5c99f22545b1dbe0d997c0
size 239270
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a5b37bec8fcde0df53e345db40f55148854cdfa4be37cf79409abf498b39f368
size 266058
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:892a0fcb4bb2cf99d025ac954ed6abaf162aa3f172a6c0b690bbe8b647940248
size 264851
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a88826a30f9541308c0cdab66add64b240a62271515455054a347695c3aa2cc4
size 108223
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8e1d4a3efbbcc9a95eb8bdade3f4a94820d2dff3eac58939ef1c001915f10c52
size 134514
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4b5d2893837ef5fef4b805162a67e951a796f0f83c393d871ef6ab18a099403a
size 146429
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9603ac222e27850a359500794e23a4398c5bdd37b4965c8eae18aae1dac07b81
size 146037
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:68bb453000d5cc1dafeab24769c6b362756b157f4432ab4037c39a4fd10383ea
size 157801
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5d0d71cd5103ff844500ec7f3610214940628827dc8edab434f9c22e46dd929a
size 169589
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9326d4ef2ae49c1650a2fa842782b00451456c65de98231546c6273617777b56
size 183485
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f79a51e74d4df02fce286a31c9c31174b12a6b9f5e846b1e0beaf02b1d06535b
size 184789