Commit graph

27729 commits

Author SHA1 Message Date
J. Ryan Stinnett
f634c3a71e Add secret storage cache callback to avoid prompts
This supplies a cache callback to the JS SDK so that we can be notified if a new
storage key is created e.g. by resetting secret storage. This allows it to be
supplied automatically in case it's needed in the same user operation, as it is
when resetting both secret storage and cross-signing together.
2020-08-28 12:10:17 +01:00
J. Ryan Stinnett
3a98b4b4e9 Rename reset secret storage prop
The bare word `force` has bothered me, so this adds a tiny amount more meaning.
2020-08-27 13:50:50 +01:00
J. Ryan Stinnett
4a807f9385 Migrate to new, separate APIs for cross-signing and secret storage
This migrates to the new JS SDK APIs, which now use separate paths for
cross-signing and secret storage setup. There should be no functional change
here.

Part of https://github.com/vector-im/element-web/issues/13895
2020-08-27 13:41:03 +01:00
J. Ryan Stinnett
a732c55797 Add secret storage readiness checks
This visits all places that were checking for cross-siging readiness and adapts
them to also check for secret storage readiness if needed.

Part of https://github.com/vector-im/element-web/issues/13895
2020-08-25 13:20:15 +01:00
Michael Telatynski
634f7ba938
Merge pull request #5142 from matrix-org/t3chguy/hooks/base-avatar
BaseAvatar avoid initial render with default avatar
2020-08-25 09:02:57 +01:00
Michael Telatynski
186374a950 BaseAvatar avoid initial render with default avatar 2020-08-24 21:08:07 +01:00
J. Ryan Stinnett
8e0742b9fe
Merge pull request #5130 from matrix-org/jryans/secure-backup-required
Enforce Secure Backup completion when requested by HS
2020-08-24 17:32:58 +01:00
J. Ryan Stinnett
35f19d53a5 Mention issue for view state store 2020-08-24 16:44:47 +01:00
J. Ryan Stinnett
b601a025b5 Use io.element instead of im.vector 2020-08-24 16:33:23 +01:00
J. Ryan Stinnett
2e2f60c20b Use updated waitFor API with well-known 2020-08-24 16:11:35 +01:00
Travis Ralston
84d782022f
Merge pull request #5139 from matrix-org/travis/communities/room-behaviour
Communities v2 prototype: Explore rooms, global state, and default room
2020-08-24 07:43:01 -06:00
Travis Ralston
56e08f440e
Merge pull request #5133 from matrix-org/travis/communities/tag-panel
Add communities v2 prototyping feature flag + initial tag panel prototypes
2020-08-24 07:41:44 -06:00
Travis Ralston
8e23b1072f Add i18n
it's probably important
2020-08-21 18:27:49 -06:00
Travis Ralston
f0bd4d3625 Show the group's room if one is returned 2020-08-21 18:19:34 -06:00
Travis Ralston
276ed90884 Add a personal group for an all-communities state
Design is approximate and needs review, though being completed out of band.
2020-08-21 18:19:29 -06:00
Travis Ralston
1b5abdab23 Override the room directory with the selected group's rooms 2020-08-21 18:19:25 -06:00
Travis Ralston
dc95ca6776 Merge branch 'travis/communities/tag-panel' into travis/communities/room-behaviour 2020-08-21 18:19:20 -06:00
Travis Ralston
d1c7d749aa
Merge pull request #5134 from matrix-org/travis/cleanup2
Remove some unused components
2020-08-21 07:45:32 -06:00
Michael Telatynski
765f474458
Merge pull request #5137 from miterion/develop
Allow avatar image view for 1:1 rooms
2020-08-21 11:02:48 +01:00
Heiko Carrasco
9193c81008
Fix image avatar view for 1:1 rooms
Signed-off-by: Heiko Carrasco <heiko.carrasco@yahoo.com>
2020-08-21 11:44:47 +02:00
David Baker
095824adbc
Merge pull request #5136 from matrix-org/dbkr/send_settings_in_rageshake
Send mx_local_settings in rageshake
2020-08-21 10:43:49 +01:00
David Baker
6a03c0a3c0 Send mx_local_settings in rageshake
Perhaps ideally we should get a complete dump of the settings in
effect out of the settings manager, but all I want for now is the
webrtc audio inputs and outputs, so let's send the ones stored locally.
2020-08-21 10:32:51 +01:00
Travis Ralston
fd06272062 Update i18n 2020-08-20 20:50:28 -06:00
Travis Ralston
c815a370e7 Remove some unused components
We no longer have tinting support, so remove it. We still need the `Tinter` to exist though as it's used in quite a few places (though does nothing). Similarly, we have to keep the `roomColor` setting due to it being used in a few places - another PR can take away the tinter support properly.

The room tile context menu and top left menu are artifacts of the old room list.

The end to end tests weren't failing before as the code path is unused, however it seems worthwhile to keep it as we will eventually need it.
2020-08-20 20:47:02 -06:00
Travis Ralston
ae04c5ce9d Appease the linter 2020-08-20 19:59:44 -06:00
Travis Ralston
d7a43df793 Disable context menu for v2 communities 2020-08-20 19:54:09 -06:00
Travis Ralston
81a7be29aa Show the selected community in the top left menu 2020-08-20 19:45:54 -06:00
Travis Ralston
beb5c2627c Disable CTRL+Click and SHIFT+Click actions on tag panel 2020-08-20 19:45:22 -06:00
Travis Ralston
0c80db8820 Add feature flag for prototypes 2020-08-20 19:44:59 -06:00
Travis Ralston
5c71e33362
Merge pull request #5132 from matrix-org/travis/leave-room
Run all room leaving behaviour through a single function
2020-08-20 07:17:13 -06:00
David Baker
0690c02e0c
Merge pull request #5131 from matrix-org/dbkr/clarify_media_device_id
Add clarifying comment in media device selection
2020-08-20 09:26:27 +01:00
Travis Ralston
42988d373b Remove debugging 2020-08-19 19:42:58 -06:00
Travis Ralston
8fffce8a30 Appease the linter 2020-08-19 19:42:36 -06:00
Travis Ralston
309c32700b Remove unused success state 2020-08-19 19:23:27 -06:00
Travis Ralston
e0b8343088 Run all room leaving behaviour through a single function
Fixes https://github.com/vector-im/element-web/issues/14999
Fixes https://github.com/vector-im/element-web/issues/10380

We were failing to handle errors when `/part`ing a room, though the leave room button was fine. This runs both the button and command through the same function for handling, including the 'view next room' behaviour.
2020-08-19 19:21:40 -06:00
David Baker
d1bca2838f Add clarifying comment in media device selection
Hopefully explain the confusing mismatch.
2020-08-19 19:07:12 +01:00
Travis Ralston
c9d98a1d19
Merge pull request #5124 from matrix-org/travis/settings-v3
Settings v3: Feature flag changes
2020-08-19 12:00:48 -06:00
Travis Ralston
0fef86cc74 Fix find & replace error 2020-08-19 11:52:02 -06:00
J. Ryan Stinnett
e56a61ec68 Invoke Secure Backup flow inside the app when requested by HS
If the Secure Backup required mode is set the client `.well-known` file, then
this will ensure that everyone already inside the app is required to complete
setup matching that policy.

Fixes https://github.com/vector-im/element-web/issues/14954
2020-08-19 16:23:27 +01:00
J. Ryan Stinnett
e8e691b746 Avoid adding setup toast in the middle of setup
This improves the experience of going through secret storage setup / reset flows
by avoiding intermittent toasts that appear and disappear in the middle of the
operation.
2020-08-19 16:23:27 +01:00
J. Ryan Stinnett
fed7ebb6bc Hide Delete Backup button when Secure Backup required
If Secure Backup is required by the HS admin, then this hides the Delete Backup
button in Settings to ensure everyone keeps their backup per policy.

Part of https://github.com/vector-im/element-web/issues/14954
2020-08-19 16:23:27 +01:00
J. Ryan Stinnett
1932505d3b Enforce Secure Backup completion when requested by HS
This removes all buttons to escape the Secure Backup setup flow when the
matching `.well-known` setting is set by homeserver.

Part of https://github.com/vector-im/element-web/issues/14954
2020-08-19 16:23:27 +01:00
J. Ryan Stinnett
941cbc47c8 Fix casing of Secure Backup to match designs 2020-08-19 16:23:27 +01:00
J. Ryan Stinnett
2b0865e89c Move E2EE well-known access to utils 2020-08-19 16:23:27 +01:00
J. Ryan Stinnett
b293ef0674 Check for .well-known E2EE settings under new key
This adds an extra check for `.well-known` E2EE settings under the key
`im.vector.e2ee`. The older key `im.vector.riot.e2ee` is kept for historical
compatibility.

Part of https://github.com/vector-im/element-web/issues/14954
2020-08-19 16:23:26 +01:00
Michael Telatynski
d700a5a78c
Merge pull request #5129 from matrix-org/t3chguy/fix/14989
Clear url previews if they all get edited out of the event
2020-08-19 11:40:57 +01:00
Michael Telatynski
c84296a28d
Merge pull request #5128 from matrix-org/t3chguy/fix/14978
Consider tab completions as modifications for editing purposes to unlock sending
2020-08-19 11:40:37 +01:00
Michael Telatynski
b95956a3a4 Clear url previews if they all get edited out of the event 2020-08-19 10:38:26 +01:00
Michael Telatynski
0bda80c57d Consider tab completions as modifications for editing purposes to unlock sending 2020-08-19 10:32:24 +01:00
Travis Ralston
534f0cc89e Revert "Merge pull request #5125 from matrix-org/travis/spec-i18n"
This reverts commit d3dba0ba3a.
2020-08-18 13:09:33 -06:00