Commit Graph

1991 Commits

Author SHA1 Message Date
Timo
b17a76ac1a
Hotfix for hangup disconnect screen (#1921)
-  we cannot disconnect livekit before ending the rtcsession.

Signed-off-by: Timo K <toger5@hotmail.de>
2023-11-27 14:08:39 +01:00
Timo
005b0bfa5e
Fix not disconnecting from livekit session. (#1920)
Signed-off-by: Timo K <toger5@hotmail.de>
2023-11-24 17:53:15 +01:00
Robin
115dfea521
Show unencrypted media warnings in widget mode (#1915)
They weren't showing up because the video tiles didn't think that the call was encrypted in the per-participant keys case.
2023-11-23 17:50:55 +01:00
Michael Telatynski
7051c11411
I18n'ise hardcoded strings 2023-11-22 20:07:30 +00:00
Robin
de3a3b6c22
Merge pull request #1913 from robintown/disable-pip
Properly disable picture-in-picture controls
2023-11-21 12:53:47 -05:00
Robin
0c2a410033
Merge pull request #1911 from robintown/lock-accessibility
Make the encryption lock more accessible
2023-11-21 12:53:37 -05:00
David Baker
95a44f5462
Merge pull request #1902 from vector-im/dbkr/hide_rooms_no_key
Hide rooms we don't have the key for in recents list
2023-11-21 15:26:45 +00:00
fkwp
59387e5b96
Merge pull request #1912 from robintown/unencrypted-indicator
Show a warning on unencrypted media
2023-11-21 16:22:12 +01:00
David Baker
b0dac561d5 Update comment 2023-11-21 09:59:07 +00:00
David Baker
0ba550f56b
Merge pull request #1910 from vector-im/dbkr/fix_no_media_perms
Fix joining calls with no media permission
2023-11-21 09:18:00 +00:00
Robin
6ebef28ad8 Properly disable picture-in-picture controls
There were some outdated comments regarding Firefox's support of the disablePictureInPicture flag which I decided to clean up.
2023-11-20 20:42:27 -05:00
Robin
49a50514fd Show a warning on unencrypted media 2023-11-20 19:04:53 -05:00
Robin
09481d1e44 Give the lock icon an accessible label 2023-11-20 19:02:19 -05:00
Robin
fcfb818a27 Make the encryption lock tooltip accessible via the keyboard 2023-11-20 18:59:56 -05:00
Robin
aa8ef57ee0
Merge pull request #1908 from vector-im/t3chguy/localazy/2
Switch from Weblate to Localazy
2023-11-20 16:55:58 -05:00
David Baker
861d8ec016 Fix joining calls with no media permission
You can still try to unmute your media in the preview screen and
the button will show unmuted, but then mute again once you actually
join, so not 100% perfect but better.

Fixes https://github.com/vector-im/element-call/issues/1907
Fixes https://github.com/vector-im/element-call/issues/1661
2023-11-20 18:49:08 +00:00
Robin
0144aafee5 Count people as speakers even if there is a presenter 2023-11-20 13:33:45 -05:00
Michael Telatynski
70dbf95429
Specify keySeparator 2023-11-20 13:47:36 +00:00
Michael Telatynski
d5f546a093
prettier the world 2023-11-20 13:38:01 +00:00
Michael Telatynski
cd78f25936
Re-add 2 missing t calls 2023-11-20 13:22:40 +00:00
Michael Telatynski
cdbf4cac01
```
move "{{count, number}}_one" "participant_count_one"
move "{{count, number}}_other" "participant_count_other"
move "{{count}} stars_one" "star_rating_input_label_one"
move "{{count}} stars_other" "star_rating_input_label_other"
move "{{displayName}} is presenting" "video_tile.presenter_label"
move "{{displayName}}, your call has ended." "call_ended_view.headline"
move "<0></0><1></1>You may withdraw consent by unchecking this box. If you are currently in a call, this setting will take effect at the end of the call." "settings.opt_in_description"
move "<0>Already have an account?</0><1><0>Log in</0> Or <2>Access as a guest</2></1>" "register_auth_links"
move "<0>Create an account</0> Or <2>Access as a guest</2>" "login_auth_links"
move "<0>Oops, something's gone wrong.</0>" "full_screen_view_h1"
move "<0>Submitting debug logs will help us track down the problem.</0>" "full_screen_view_description"
move "<0>Thanks for your feedback!</0>" "call_ended_view.feedback_done"
move "<0>We'd love to hear your feedback so we can improve your experience.</0>" "call_ended_view.feedback_prompt"
move "<0>Why not finish by setting up a password to keep your account?</0><1>You'll be able to keep your name and set an avatar for use on future calls</1>" "call_ended_view.create_account_prompt"
move "Another user on this call is having an issue. In order to better diagnose these issues we'd like to collect a debug log." "rageshake_request_modal.body"
move "Back to recents" "lobby.leave_button"
move "By participating in this beta, you consent to the collection of anonymous data, which we use to improve the product. You can find more information about which data we track in our <2>Privacy Policy</2> and our <5>Cookie Policy</5>." "analytics_notice"
move "Call not found" "group_call_loader_failed_heading"
move "Calls are now end-to-end encrypted and need to be created from the home page. This helps make sure everyone's using the same encryption key." "group_call_loader_failed_text"
move "Confirm password" "register_confirm_password_label"
move "Connectivity to the server has been lost." "disconnected_banner"
move "Continue in browser" "app_selection_modal.continue_in_browser"
move "Create account" "call_ended_view.create_account_button"
move "Debug log request" "rageshake_request_modal.title"
move "Developer" "settings.developer_tab_title"
move "Developer Settings" "settings.developer_settings_label"
move "Element Call Home" "header_label"
move "End call" "hangup_button_label"
move "Full screen" "fullscreen_button_label"
move "Exit full screen" "exit_fullscreen_button_label"
move "Expose developer settings in the settings window." "settings.developer_settings_label_description"
move "Feedback" "settings.feedback_tab_title"
move "Grid" "layout_grid_label"
move "Spotlight" "layout_spotlight_label"
move "How did it go?" "call_ended_view.survey_prompt"
move "If you are experiencing issues or simply would like to provide some feedback, please send us a short description below." "settings.feedback_tab_body"
move "Include debug logs" "settings.feedback_tab_send_logs_label"
move "Invite to this call" "invite_modal.title"
move "Join call" "lobby.join_button"
move "Join call now" "room_auth_view_join_button"
move "Join existing call?" "join_existing_call_modal.title"
move "Link copied to clipboard" "invite_modal.link_copied_toast"
move "Local volume" "local_volume_label"
move "Logging in…" "logging_in"
move "Login" "login_title"
move "Login to your account" "unauthenticated_view_login_button"
move "Microphone off" "microphone_off"
move "Microphone on" "microphone_on"
move "More" "settings.more_tab_title"
move "Mute microphone" "mute_microphone_button_label"
move "Name of call" "call_name"
move "Not now, return to home screen" "call_ended_view.not_now_button"
move "Open in the app" "app_selection_modal.open_in_app"
move "Not registered yet? <2>Create an account</2>" "unauthenticated_view_body"
move "Participants" "header_participants_label"
move "Passwords must match" "register.passwords_must_match"
move "Ready to join?" "app_selection_modal.text"
move "Recaptcha dismissed" "recaptcha_dismissed"
move "Recaptcha not loaded" "recaptcha_not_loaded"
move "Reconnect" "call_ended_view.reconnect_button"
move "Registering…" "register.registering"
move "Retry sending logs" "rageshake_button_error_caption"
move "Return to home screen" "return_home_button"
move "Select an option" "select_input_unset_button"
move "Select app" "app_selection_modal.title"
move "Send debug logs" "rageshake_send_logs"
move "Sending debug logs…" "rageshake_sending_logs"
move "Sending…" "rageshake_sending"
move "Share screen" "screenshare_button_label"
move "Sharing screen" "stop_screenshare_button_label"
move "Show connection stats" "settings.show_connection_stats_label"
move "Speaker" "settings.speaker_device_selection_label"
move "Start new call" "start_new_call"
move "Start video" "start_video_button_label"
move "Stop video" "stop_video_button_label"
move "Submit feedback" "settings.feedback_tab_h4"
move "Submitting…" "submitting"
move "Thanks, we received your feedback!" "settings.feedback_tab_thank_you"
move "Thanks!" "rageshake_sent"
move "This application has been opened in another tab." "application_opened_another_tab"
move "This call already exists, would you like to join?" "join_existing_call_modal.text"
move "Unmute microphone" "unmute_microphone_button_label"
move "Version: {{version}}" "version"
move "Waiting for other participants…" "waiting_for_participants"
move "Yes, join call" "join_existing_call_modal.join_button"
move "You" "video_tile.sfu_participant_local"
move "You were disconnected from the call" "call_ended_view.body"
move "Your feedback" "settings.feedback_tab_description_label"
move "Your web browser does not support media end-to-end encryption. Supported Browsers are Chrome, Safari, Firefox >=117" "browser_media_e2ee_unsupported"
move "By clicking \"Go\", you agree to our <2>End User Licensing Agreement (EULA)</2>" "unauthenticated_view_eula_caption"
move "By clicking \"Join call now\", you agree to our <2>End User Licensing Agreement (EULA)</2>" "room_auth_view_eula_caption"
move "This site is protected by ReCAPTCHA and the Google <2>Privacy Policy</2> and <6>Terms of Service</6> apply.<9></9>By clicking \"Register\", you agree to our <12>End User Licensing Agreement (EULA)</12>" "register.recaptcha_caption"
```
2023-11-20 13:20:19 +00:00
Michael Telatynski
71664f5f8e
Migrate action, common, a11y translation keys
```
move () {
  FROM=$1 TO=$2 find public/locales -type f -exec sh -c 'jq ".$TO = .\"$FROM\" | del(.\"$FROM\") | del(..|nulls) | select(length > 0)" {} | sponge {}' \;
}

move "Avatar" "common.avatar"
move "Camera" "common.camera"
move "Close" "action.close"
move "Copied!" "common.copied"
move "Copy" "action.copy"
move "Copy link" "action.copy_link"
move "Encrypted" "common.encrypted"
move "Go" "action.go"
move "Home" "common.home"
move "Invite" "action.invite"
move "Loading…" "common.loading"
move "Microphone" "common.microphone"
move "No" "action.no"
move "Not encrypted" "common.unencrypted"
move "Password" "common.password"
move "Profile" "common.profile"
move "Username" "common.username"
move "Video" "common.video"
move "Register" "action.register"
move "Remove" "action.remove"
move "Settings" "common.settings"
move "Sign in" "action.sign_in"
move "Sign out" "action.sign_out"
move "Submit" "action.submit"
move "User menu" "a11y.user_menu"
move "Audio" "common.audio"
move "Display name" "common.display_name"
```
2023-11-20 12:18:43 +00:00
Robin
42c8677be1 Fix jumpy speaker tiles in spotlight mode
reorderTiles was programmed to only place a tile in the speaker section if that tile's previous position was off-screen. But for speakers that started off-screen, this would cause them to oscillate in and out of the speaker section on each render, because the speaker section is, of course, on-screen. The solution I've gone with here is to avoid referencing the previous position, and instead go by the computed natural ordering, which ought to be more stable.
2023-11-20 01:02:08 -05:00
Michael Telatynski
548d2e4d63
Wire up typescript safety net around i18next 2023-11-17 12:26:25 +00:00
Michael Telatynski
1598818db6
Switch i18n plural separator from | to _ 2023-11-17 12:08:27 +00:00
David Baker
92d61fa0f1 Hide rooms we don't have the key for in recents list 2023-11-16 16:32:25 +00:00
David Baker
081c42f5bc
Merge pull request #1892 from vector-im/dbkr/focus_switch_keep_screenshare
Keep screenshares when switching focus
2023-11-16 09:39:17 +00:00
David Baker
57ca5d1713 Another comment 2023-11-15 16:23:06 +00:00
David Baker
be5cd619bb Add comment 2023-11-15 16:20:28 +00:00
David Baker
56c4ad088f
Merge pull request #1891 from vector-im/dbkr/require_e2eeconfig
Make E2EEConfig required
2023-11-15 16:13:17 +00:00
David Baker
c146e83c15 Keep screenshares when switching focus
This also removes the use of the useLivekitRoom hook: we had reached
the point where the only thing it was actually doing was disconnecting,
so we now do that in the onClick handler for the leave button (I don't
think we need to disconnect on unmount?). It was otherwise just getting in
the way and causing tracks to be enabled/disabled when we didn't want them
to be. This also removes the need for the blockAudio code.

Fixes https://github.com/vector-im/element-call/issues/1413
2023-11-10 15:24:43 +00:00
David Baker
5ab6d18712 Make E2EEConfig required
Previously it could be either undefined or type None which meant the
same thing: no need to have both, just make it required.

This also means we can move the line to set e2ee enabled into a more
sensible place rather than in the ActiveCall de-nulling wrapper.
2023-11-10 11:54:59 +00:00
David Baker
e4e721818a Close precreated tracks if we never add them
As the log line says, this should never happen, but if it does we
still shouldn't leak tracks.
2023-11-10 11:18:20 +00:00
Timo
488b567d42
rename flags and add docs for perparticipantE2EE (#1862)
Signed-off-by: Timo K <toger5@hotmail.de>
2023-11-03 16:04:54 +01:00
David Baker
731f1e4008
Merge pull request #1772 from vector-im/dbkr/ppe2ee
Support key-per-participant e2ee
2023-10-31 20:08:05 +00:00
Timo
5008c33dfa
missing showControls condition (#1854)
Signed-off-by: Timo K <toger5@hotmail.de>
2023-10-31 16:04:22 +01:00
Timo
70f32feb5f
invert show/hide controls (#1850)
Signed-off-by: Timo K <toger5@hotmail.de>
2023-10-31 13:47:24 +01:00
David Baker
28141498b4
Merge pull request #1835 from vector-im/dbkr/sentry_migrate
Migrate to @sentry/browser
2023-10-31 09:37:02 +00:00
David Baker
1775b0948f
Merge pull request #1836 from vector-im/dbkr/add_double_mic_sentry_message
Add sentry message if we hit the extra mic check
2023-10-31 09:36:44 +00:00
David Baker
49c90a4612 Amalgamate E2EEMode & E2eeType 2023-10-30 17:06:59 +00:00
David Baker
c65ce86001 Update for renamed function
and new js-sdk containing it
2023-10-30 16:55:16 +00:00
Timo
441ad5bf2c
Fix not hanging up when using the close button (EXA EXI) (#1840)
---------

Signed-off-by: Timo K <toger5@hotmail.de>
2023-10-30 17:30:30 +01:00
Robin
adbe8042a2 Fix the build 2023-10-30 11:42:39 -04:00
Robin
e1c2d66248
Merge pull request #1810 from vector-im/renovate/vector-im-compound-design-tokens-0.x
Update dependency @vector-im/compound-design-tokens to ^0.0.7
2023-10-30 10:48:08 -04:00
Robin
5d1f4d6f22 Fix icon references 2023-10-30 10:43:59 -04:00
David Baker
70c042aeee Merge remote-tracking branch 'origin/livekit' into dbkr/ppe2ee 2023-10-27 20:48:51 +01:00
David Baker
bc0d679d50 Add sentry message if we hit the extra mic check
If we hit the condition detecting that we're trying to add an extra
mic input, send a sentry message so we know if this is happening in
the wild.
2023-10-27 16:18:00 +01:00
David Baker
0fcf6debb6 Migrate to @sentry/browser 2023-10-27 16:07:16 +01:00
Timo
58ee31d383
Add hideControls url param for screen recordings. (#1808)
---------

Signed-off-by: Timo K <toger5@hotmail.de>
2023-10-26 19:33:59 +02:00
David Baker
2d5b4dbc57 Merge remote-tracking branch 'origin/livekit' into dbkr/ppe2ee 2023-10-26 10:29:12 +01:00
David Baker
8a18dadc02 Don't log keys
Although I'm not sure this actually did anyway, but it was very spammy
2023-10-25 15:30:58 +01:00
Timo
28b46be043
Add skipLobby to params (#1730)
---------

Signed-off-by: Timo K <toger5@hotmail.de>
2023-10-25 13:49:18 +02:00
Timo
8356b722a6
Add limit condition to sync loop and add more logging what is actually going on. (#1775)
---------

Signed-off-by: Timo K <toger5@hotmail.de>
2023-10-25 13:44:33 +02:00
David Baker
99d5103dfa Stop logging encryption keys 2023-10-23 12:31:37 +01:00
David Baker
74f1aa0cba Add the file 2023-10-23 12:17:28 +01:00
David Baker
f04beab99f Make e2ee type clearer hopefully 2023-10-23 12:10:25 +01:00
David Baker
9126fb3f3e Fix key format on the wire to be base64 2023-10-20 17:31:15 +01:00
David Baker
7b538363be Don't require shared key in ppe2ee mode 2023-10-19 17:43:31 +01:00
David Baker
22ef625b55 Disable ratcheting
The auto ratcheting sets the keys and so looks like it can clobber
us setting a key from the app if they race, so just disable it, at
least for now - we aren't using it.
2023-10-19 16:50:29 +01:00
David Baker
ba999e7bc3 Update event name 2023-10-18 15:27:44 +01:00
David Baker
5ce5795bde Merge remote-tracking branch 'origin/livekit' into dbkr/ppe2ee 2023-10-18 15:22:58 +01:00
David Baker
74e4c2fd08 Remove testing hack 2023-10-16 17:58:21 +01:00
David Baker
15d3e7574d Re-apply Simon's emebdded e2ee work on latest livekit branch
Replaces https://github.com/vector-im/element-call/pull/1350
2023-10-16 17:45:06 +01:00
Robin
76d8482e53 Update the invite button icon
The design specs have changed to always use the outline variants of icons on buttons like this.
2023-10-16 12:37:22 -04:00
Robin
120abde5bd Replace glass component with the upstreamed version
It's now been implemented in Compound Web, so we can remove our custom implementation.
2023-10-13 14:44:19 -04:00
David Baker
ea1c2e9ec3 Merge remote-tracking branch 'origin/livekit' into dbkr/remove_e2ee_setting 2023-10-13 15:26:30 +01:00
David Baker
e86f9b77fc
Merge pull request #1754 from vector-im/dbkr/remove_e2ee_banner
Remove E2EEBanner
2023-10-13 15:18:51 +01:00
David Baker
6ef4ce6d29
Merge pull request #1756 from vector-im/dbkr/safari_screenshare
Re-enable screen sharing on Safari
2023-10-13 15:18:27 +01:00
David Baker
2faf9527a0 Fix using a non-default audio device
We were passing the output option when we wanted the input, so the
mic track pre-creation would just always use the system default.
2023-10-13 13:34:25 +01:00
David Baker
42d9fe1962
Merge pull request #1720 from vector-im/dbkr/write_key_with_right_roomid
Always store room passwords with the right room ID
2023-10-13 11:35:38 +01:00
David Baker
aac92c18b3 Re-enable screen sharing on Safari
Appears to work fine now, and no reason to think it shouldn't on
Livekit.
2023-10-13 11:02:20 +01:00
David Baker
61d7adf0d4
Merge pull request #1740 from vector-im/dbkr/log_mic_and_focus
Add logging & guards for mic pre-creation & focus
2023-10-13 10:34:41 +01:00
David Baker
5ef208e789 Remove E2EE setting
Since e2ee is enabled by default now
2023-10-13 10:30:06 +01:00
David Baker
32657084aa Remove E2EEBanner
We have e2ee now
2023-10-13 10:04:54 +01:00
Timo
5262af7000
Fix sync loop by adding a 20ms break for the next mute sync (#1742)
* fix sync loop by adding a 20ms break for the next mute sync

---------

Signed-off-by: Timo K <toger5@hotmail.de>
2023-10-12 10:51:37 +02:00
David Baker
d579acd21f Even prettier 2023-10-11 16:29:08 +01:00
David Baker
11664a5bf6 Prettier 2023-10-11 16:27:17 +01:00
David Baker
d058f08c47 Prettier 2023-10-11 16:25:47 +01:00
David Baker
4c742d0ac4 Merge remote-tracking branch 'origin/livekit' into dbkr/write_key_with_right_roomid 2023-10-11 16:14:24 +01:00
David Baker
9d4ade97b0
Remove redundant check
Co-authored-by: Timo <16718859+toger5@users.noreply.github.com>
2023-10-11 16:10:03 +01:00
David Baker
a9c74172a5 Add logging & guards for mic pre-creation & focus
Logs & guard for pre-recating the mic track as well as logging what
we select as the active focus (JWT URL + livekit alias).
2023-10-11 16:07:46 +01:00
Robin
614bc82402 Format code 2023-10-11 10:42:04 -04:00
Robin
cc6f1f8631 Merge branch 'livekit' into eslint-upgrade 2023-10-11 10:30:57 -04:00
David Baker
59cd0c87cd Merge remote-tracking branch 'origin/livekit' into dbkr/write_key_with_right_roomid 2023-10-11 12:53:54 +01:00
David Baker
6039253a32 Reafctor a bit 2023-10-11 12:53:33 +01:00
David Baker
d575ea4117
Merge pull request #1722 from vector-im/dbkr/dont_use_sender
Don't use event.sender
2023-10-10 17:20:35 +01:00
David Baker
51f87fa42a
Add comment
Co-authored-by: Timo <16718859+toger5@users.noreply.github.com>
2023-10-10 17:06:49 +01:00
Timo
d5edcce470
Fix mute button not being in sync with actual video/audio feed. (#1721)
* Fix mute button not being in sync with actual video/audio feed.
This happens if we toggle the button while waiting for updating the stream.
It is prohibited by checking if the stream state is in sync after the update
is done.
Signed-off-by: Timo K <toger5@hotmail.de>


---------

Signed-off-by: Timo K <toger5@hotmail.de>
2023-10-10 14:14:39 +02:00
David Baker
07cde7ee4d Don't use event.sender
Pull in a js-sdk change to avoid using event.sender (see js-sdk PR
for details).

Fixes https://github.com/vector-im/element-call/issues/1697
2023-10-09 20:49:03 +01:00
David Baker
d7b33ee959 Always store room passwords with the right room ID
Take the room ID from the URL rather than just assuming it's still
the one that was in URL params before: if only the hash changes,
the app won't reload.

Fixes https://github.com/vector-im/element-call/issues/1708
2023-10-09 17:43:50 +01:00
David Baker
df93fb4a3f Add comment 2023-10-09 16:35:27 +01:00
David Baker
6faceb07cd Log if password needed url encoding 2023-10-09 16:28:48 +01:00
David Baker
0892edc432 Use base64url encoding for the password param
As base64 is fairly obviously not sensible for URLs and we were not
URL encoding it so we were ending up with spaces in the URL.

Also base 64 encode the password in case, as per comment.
2023-10-09 10:08:10 +01:00
David Baker
e9798441f7 Merge remote-tracking branch 'origin/livekit' into dbkr/use_secure_random 2023-10-06 16:18:53 +01:00
David Baker
f2435f1c31 More consistent variable naming 2023-10-06 16:15:16 +01:00
David Baker
715c5c73ca Merge remote-tracking branch 'origin/livekit' into dbkr/refactor_room_create 2023-10-06 15:15:30 +01:00
David Baker
be4afaeb7e
Merge pull request #1687 from vector-im/dbkr/update_default_device
Switch capture devices if the default device changes
2023-10-06 12:01:46 +01:00
David Baker
87d5062d34 Don't use js-sdk's base64 encode function
It uses the NodeJS Buffer global which presumably is provided by
Webpack in element-web but isn't here, apparently.
2023-10-05 17:57:23 +01:00
David Baker
d373081db1 Generate call passwords with secure RNG 2023-10-05 17:32:43 +01:00
David Baker
6481b2f67e Merge branch 'dbkr/keep_password_in_url' into dbkr/refactor_room_create 2023-10-05 17:27:03 +01:00
David Baker
b646b0ae56 Remove extra function
that was now doing exactly the same thing as the one above it.
2023-10-05 17:25:06 +01:00
David Baker
e63721acea Refactor room creation code a little
We c+ped the code to create room passwords between two places, but we
already had a createRoom utility function that knew about e2ee.
2023-10-05 16:44:31 +01:00
David Baker
4984bd630e Keep the password in the URL
We changed our minds: people do copy the URL from the bar and
give that to people and expect it to work: it doesn't make sense
to prioritise shorter URLs over this. There's no security advantage
unless we think there's a risk someone might steal your key by taking
a photo of your monitor over your shoulder and decrypting the calls
they can't already hear by standing behind you.
2023-10-05 16:13:56 +01:00
Timo
63a00eef2f
await leave rtc session (#1648)
so that the widget is only getting the hangup even,
once the call has been cleaned up

Signed-off-by: Timo K <toger5@hotmail.de>
2023-10-04 18:27:07 +02:00
Timo
c18dce3617
Make sure roomAlias = null in widget mode (#1676)
Signed-off-by: Timo K <toger5@hotmail.de>
2023-10-04 15:56:57 +02:00
Timo
01b2367f38
allow widget related params in the fragment (#1675)
Signed-off-by: Timo K <toger5@hotmail.de>
2023-10-03 21:35:28 +02:00
David Baker
c37b2924af Comment 2023-10-03 18:27:10 +01:00
David Baker
e0cabbc514 Switch capture devices if the default device changes
This is a bit of a hack, but is the only way I can see that we can
update to using the new default device when the OS-level default
changes. Hopefully the comments explain everything.
2023-10-03 18:22:56 +01:00
Robin
e582e9d171 Adjust margins 2023-09-28 12:41:00 -04:00
Robin
bdc5d701cc Merge branch 'livekit' into remove-storybook 2023-09-28 10:08:51 -04:00
Robin
44dbe77757 Merge branch 'livekit' into remove-inspector 2023-09-28 09:54:37 -04:00
Robin
5134ff8e0a
Merge pull request #1649 from robintown/fix-svg-import
Fix a broken SVG import
2023-09-28 09:49:22 -04:00
Robin
98bbd9ba3f
Merge pull request #1645 from robintown/name-tag-color
Update the colors of name tags
2023-09-28 09:45:24 -04:00
Robin
3245ae9f60
Merge pull request #1641 from robintown/invite-modal
Implement the new invite modal designs
2023-09-28 09:45:03 -04:00
Robin
44a4d7a1d0 Fix a broken SVG import
https://github.com/vector-im/element-call/pull/1642 raced with https://github.com/vector-im/element-call/pull/1625, resulting in a broken import.
2023-09-28 09:44:00 -04:00
Robin
17836113ac
Merge pull request #1642 from robintown/participants-icon
Replace the avatar stack in the header with an icon
2023-09-28 09:42:46 -04:00
Robin
7df093a23c Merge branch 'livekit' into invite-modal 2023-09-28 09:42:06 -04:00
Robin
99216c3b5a
Merge pull request #1625 from vector-im/renovate/vite-plugin-svgr-4.x
Update dependency vite-plugin-svgr to v4
2023-09-27 19:08:41 -04:00
Robin
2730cea181 Fix imports 2023-09-27 19:06:10 -04:00
Robin
a7556f66b1 Update the colors of name tags
This was changed in the designs so we don't have to hard-code colors for them anymore.
2023-09-27 18:36:14 -04:00
Robin
05013cc510 Remove Storybook
As discussed in today's team meeting, no one is using the Storybook files anymore, and they're a maintenance burden, so we should remove them.
2023-09-27 18:32:11 -04:00
Robin
1dc4ef67f3 Remove the group call inspector
It's unused ever since we switched to LiveKit, and we intend to use other telemetry mechanisms going forward to fill this debugging use case, so it can be removed as discussed in today's team meeting.
2023-09-27 18:27:42 -04:00
Robin
916a88712a Replace the avatar stack in the header with an icon
This is a design update.
2023-09-27 18:12:04 -04:00
Robin
8a14d60cb4 Implement the new invite modal designs 2023-09-27 17:45:18 -04:00
Robin
a959436ac7 Change wording from 'share' to 'invite'
This was updated in the designs.
2023-09-27 15:17:04 -04:00
David Baker
03caa22f0e
Merge pull request #1611 from vector-im/dbkr/depthlimit
Re-enable livekit rageshake logging & with depth limit
2023-09-27 13:28:38 +01:00
Robin
eedd19f515
Merge pull request #1595 from robintown/border-priority
Give speaking border priority over hover border
2023-09-27 07:58:07 -04:00
Robin
6bb004ea55
Merge pull request #1594 from robintown/grid-clipping
Fix the video grid getting clipped at the edges
2023-09-27 07:57:56 -04:00
Robin
2f0469880b
Merge pull request #1593 from robintown/layout-toggle-bg
Make the layout toggle opaque
2023-09-27 07:57:44 -04:00
David Baker
3016866a4b Make the right function a real function, then the 'this' param works 2023-09-26 18:30:39 +01:00
David Baker
2cfa007d4c
Typo
Co-authored-by: Robin <robin@robin.town>
2023-09-26 17:31:00 +01:00
David Baker
4613d43c3c Re-enable livekit rageshake logging & with depth limit
Puts livekit logs back in the rageshake logs and adds a recursion
limit to the object serialiser in rageshake.
2023-09-26 12:08:08 +01:00
David Baker
a1aaacaad7
Merge pull request #1592 from vector-im/dbkr/use_loglevel
Use the loglevel library's extensions
2023-09-26 11:14:47 +01:00
David Baker
31446e7997
Typo
Co-authored-by: Robin <robin@robin.town>
2023-09-25 20:55:04 +01:00
Robin
988f0a8bc9 Give speaking border priority over hover border
Because that's how it works in the designs
2023-09-25 14:38:00 -04:00
Robin
14bd53c02b Fix the video grid getting clipped at the edges
And also, put the scroll bar in a more sensible spot by turning the footer into a proper sticky footer.
2023-09-25 14:16:29 -04:00
Robin
172c7664be Make the layout toggle opaque
So that the background doesn't shine through it
2023-09-25 14:13:35 -04:00
David Baker
c546042d18 Use the loglevel library's extensions
...instead of monkey patching the console log objects. We use a logging
framework everywhere now (this fixes the times when we didn't...)
so there's not really a reason to do this the hacky way anymore.

This means that log lines now appear to come from whatever else is
intercepting the logger (eg. sentry) rather than rageshake.ts.

Opinions on this welcome on whether it's better or not.
2023-09-25 18:04:34 +01:00
Robin
d672190c6f Swap the microphone and video buttons
Per feedback and discussion with design, we should keep them in the order they were previously.
2023-09-25 10:39:18 -04:00
David Baker
b0f63eb2ff
Revert "Capture livekit's logs in rageshakes" 2023-09-25 09:32:32 +01:00
Robin
a7624806b2 Upgrade eslint-plugin-matrix-org to 1.2.1
This upgrade came with a number of new lints that needed to be fixed across the code base. Primarily: explicit return types on functions, and explicit visibility modifiers on class members.
2023-09-22 18:07:06 -04:00
David Baker
0297008339 Don' always try to join rooms
Look up the alias manually instead. As hopefully explained by the comment.

We hope this may fix a bug where the room ID appeared instead of the room name.
2023-09-22 18:56:34 +01:00
David Baker
48b038914f
Revert "Refactor useIsRoomE2EE" 2023-09-22 18:20:29 +01:00
David Baker
f05cae71a8 Use consistent import 2023-09-22 18:05:51 +01:00
David Baker
3cd0ca205b Refactor useIsRoomE2EE
Make it take a room object rather than a room ID to avoid it depending
on a side effect, ie. if the room object input changes, the hook will be
re-run but if we can't get the room from the room ID for whatever reason,
we'd be stuck.

Also add logging on why we decided a room was e2ee.
2023-09-22 15:35:03 +01:00
David Baker
9bf0dc7dee Unused import 2023-09-21 16:58:02 +01:00
David Baker
9c878eab80 Capture livekit's logs in rageshakes 2023-09-21 16:50:31 +01:00
Timo
1e84e438b7
New url schema (#1554)
* new url schema

Signed-off-by: Timo K <toger5@hotmail.de>
Co-authored-by: Robin <robin@robin.town>
2023-09-20 19:55:17 +02:00
Robin
1c41373ddd
Merge pull request #1560 from vector-im/fix-double-audio
Fix double audio tracks
2023-09-20 13:51:19 -04:00
David Baker
a5131be7c7
Merge pull request #1557 from vector-im/dbkr/fix_password_race
Fix race where app would be opened with no e2ee key
2023-09-20 18:42:35 +01:00
Robin
69bf3bd9a1 Fix double audio tracks
See comments. I'm not very happy with how this code bounces state in and out of different hooks and useEffect blocks, but as a quick fix this should work.
2023-09-20 13:26:34 -04:00
David Baker
cbf27fc887 Also use return value password in the other hook 2023-09-20 17:40:37 +01:00
David Baker
ed0059c898 Hopefully actually fix password bug 2023-09-20 17:05:10 +01:00
David Baker
850cae9dfa Revert "fix url by providin a last & (#1550)"
This reverts commit 54e6fd4c07.
2023-09-20 16:31:45 +01:00
David Baker
4f43402299 Log an error if we don't have the key when generating a url for en e2ee room 2023-09-20 16:29:46 +01:00
David Baker
96c6217a83 Fix race where app would be opened with no e2ee key
The key hadn't been extractwed from the URL at the point the modal
was mounted, so it just didn't get the key.
2023-09-20 16:25:02 +01:00
Timo
5c377ba01d
Dont ignore rest of url (#1555)
Signed-off-by: Timo K <toger5@hotmail.de>
2023-09-20 16:26:09 +02:00
David Baker
4842b2a89b
Merge pull request #1552 from vector-im/dbkr/unsupported_browser_message
Better error for browsers that don't support e2ee
2023-09-20 14:30:22 +01:00
Timo
54e6fd4c07
fix url by providin a last & (#1550)
* fix url by prvidin a last &
everything after the last & will be stripped away
-> hence we loose the last param (usually confined to room...)
-> going home kills the all the params which we need to fix!

---------

Signed-off-by: Timo K <toger5@hotmail.de>
2023-09-20 14:08:31 +02:00
David Baker
a115f0530f Better error for browsers that don't support e2ee 2023-09-20 13:05:11 +01:00
David Baker
d4b67015b8 Fix layout toggle on safari 2023-09-20 10:22:48 +01:00
David Baker
0128fece80
Merge pull request #1533 from vector-im/dbkr/include_room_name
Include the room name in the generated URL
2023-09-20 08:40:15 +01:00
David Baker
01ec38493a Be consistent with imports 2023-09-19 22:04:37 +01:00
David Baker
fe9ea31149 Fix a type
This was cast because of a minor optional mismatch
2023-09-19 19:23:19 +01:00
David Baker
1ebf1bd4e6 Merge remote-tracking branch 'origin/livekit' into dbkr/include_room_name 2023-09-19 18:56:04 +01:00
David Baker
83fdb094d5 Factor out common function to generate the URLs 2023-09-19 18:55:33 +01:00
David Baker
2df95c4fe9
Merge pull request #1530 from vector-im/dbkr/no_auto_create
Don't auto create calls from visiting the URL
2023-09-19 18:47:43 +01:00
David Baker
aab27ae616 Wrong mouse event 2023-09-19 18:36:51 +01:00
David Baker
f33170f5f4 Don't reload the page 2023-09-19 18:29:09 +01:00
David Baker
a268a804bb Use compound components 2023-09-19 18:27:53 +01:00
David Baker
53e3cbcf61
Don't include the brand name
Co-authored-by: Robin <robin@robin.town>
2023-09-19 18:26:08 +01:00
David Baker
2753f04f0b Include the room name in the generated URL 2023-09-19 18:23:44 +01:00
David Baker
79d46621fa Well, half of the line changes were correct. 2023-09-19 18:00:09 +01:00
David Baker
24ffb6547c Don't auto create calls from visiting the URL
This didn't work with e2e calls and just ended up with everyone who
went to the URL creating their own room because it didn't add the
alias to any of them.

This has it show a very simple 404-esque screen instead. If the call
already exists, it will show it as before, so existing URLs will
continue to work.
2023-09-19 17:57:16 +01:00
David Baker
6581d64618 Use the room ID as the react key
room alias doesn't work now some rooms don't have aliases.
2023-09-19 17:42:17 +01:00
Robin
141f5cdeea
Merge pull request #1522 from robintown/settings-cutoff
Fix dropdowns in settings still being cut off on mobile
2023-09-19 11:25:08 -04:00
Robin
f66b5ce2e8
Merge pull request #1513 from robintown/layout-toggle-safari
Fix layout toggle looking broken on Safari (I hope)
2023-09-19 11:15:38 -04:00
Robin
42e898b65e Fix dropdowns in settings still being cut off on mobile 2023-09-19 10:21:11 -04:00
Timo
9f832127b2
Fix comments (workaround gh weirdness) (#1518)
Signed-off-by: Timo K <toger5@hotmail.de>
2023-09-19 16:17:08 +02:00
Timo
4aec5c34f3
Firefox audio output issues fix (#1510)
---------

Signed-off-by: Timo K <toger5@hotmail.de>
2023-09-19 15:10:14 +02:00
Robin
7f8a434135 Fix layout toggle looking broken on Safari (I hope)
I don't have a Safari to test with, but according to https://moderncss.dev/pure-css-custom-styled-radio-buttons/, this should do the trick.
2023-09-19 07:54:13 -04:00
Robin
6a12a10cb5
Merge pull request #1497 from robintown/is-embedded
Untangle the semantics of isEmbedded
2023-09-19 07:15:07 -04:00
Robin
889e3842ee
Merge pull request #1493 from robintown/touchscreen-detection
Make touchscreen detection more robust
2023-09-19 07:14:58 -04:00
Robin
cc1f14bef3 Use explicit boolean flags 2023-09-19 07:12:27 -04:00
Robin
63f4086f98 Handle all URL param flags the same way 2023-09-19 07:11:39 -04:00
Robin
d1c9c4b331 Add comment 2023-09-19 07:04:43 -04:00
Robin
9f893e5373 Format code 2023-09-18 21:05:01 -04:00
Robin
4253963b95 Untangle the semantics of isEmbedded
This deletes the isEmbedded flag from UrlParams, replacing it with an alternative set of flags that I think is more sensible and well-defined.
2023-09-18 21:00:18 -04:00
Robin
b3ef5ac929 Make touchscreen detection more robust
Empirically, Chrome on Android can end up not matching (hover: none), but still matching (pointer: coarse). 😕
2023-09-18 19:24:22 -04:00
Robin
0b6b077506
Merge pull request #1478 from robintown/drawer-radius
Tweak drawer appearance to better match native system components
2023-09-18 18:31:51 -04:00
Robin
38ad42a0d8
Merge pull request #1485 from robintown/lobby-updates
Implement new lobby design
2023-09-18 18:31:35 -04:00
Robin
fe8ca9df9d
Merge pull request #1489 from robintown/settings-cut-off
Fix dropdowns in settings being cut off
2023-09-18 18:27:09 -04:00
Robin
00f587898d
Merge pull request #1486 from robintown/page-overflow
Fix home page overflowing by a few pixels
2023-09-18 18:26:58 -04:00
Robin
5f87d8d16c
Merge pull request #1482 from robintown/no-autojoin
Remove auto-join behavior from embedded mode
2023-09-18 18:03:04 -04:00
Robin
89fcfb7062
Merge pull request #1481 from robintown/fix-app-selection
Fix app selection prompt appearing even in the app
2023-09-18 17:57:20 -04:00
Robin
497c106c9f Fix dropdowns in settings being cut off 2023-09-18 17:34:24 -04:00
Robin
c1f1cb94fd Fix home page overflowing by a few pixels
Because the height of our header component changed at some point, the hard-coded height values in the CSS were off by a few px and caused the page to overflow slightly.
2023-09-18 16:49:55 -04:00
Robin
771ab41833 Implement new lobby design 2023-09-18 15:58:36 -04:00
Robin
6bdb4b69ee Remove auto-join behavior from embedded mode
This was a hack that we did back when we were working on PTT, to make the joining process for PTT more seamless, but it doesn't make much sense to auto-join normal calls without giving the user a chance to turn off / adjust their media. If we want this behavior back eventually, I think it would be better serviced by a separate URL parameter.
2023-09-18 13:05:25 -04:00
Robin
6801c95e6a Fix app selection prompt appearing even in the app
Turns out, I just got the name of this URL parameter wrong
2023-09-18 13:03:33 -04:00
David Baker
6561c0a898 Merge remote-tracking branch 'origin/livekit' into dbkr/refactor_urlparams 2023-09-18 17:54:49 +01:00
David Baker
4f48751aa2 Small refactor of URLParams stuff
Splits out the room locartion parsing from everything else to avoid
one function that fills out different parts of its return struct
depending on its args.
2023-09-18 17:49:10 +01:00
Robin
40ef872658 Tweak drawer appearance to better match native system components 2023-09-18 12:17:31 -04:00
Robin
8eb789d6aa Merge branch 'livekit' into remove-walkie-talkie 2023-09-18 11:58:45 -04:00
Robin
1ecc8e3b22 Fix bad import 2023-09-18 11:56:24 -04:00
Robin
4d5b13824f
Merge pull request #1448 from robintown/app-selection
Add a prompt to launch Element X on mobile
2023-09-18 11:54:31 -04:00
Robin
48c563d31f
Merge pull request #1470 from robintown/feedback-layout
Fix the feedback screen looking broken on mobile
2023-09-18 11:54:25 -04:00
Robin
1e2b2c6ef9
Merge pull request #1472 from robintown/invert-buttons
Invert the microphone and video button states
2023-09-18 11:53:18 -04:00
Robin
cfd61282cc Merge branch 'livekit' into remove-walkie-talkie 2023-09-18 11:52:52 -04:00
Robin
b53868cbc9 Merge branch 'livekit' into app-selection 2023-09-18 11:50:32 -04:00
Robin
662a85c16a Add a clarifying comment 2023-09-18 11:46:16 -04:00
Robin
aaf4d20e7d Merge branch 'livekit' into use-modals 2023-09-18 11:40:10 -04:00
Robin
08be4550d5
Merge pull request #1446 from robintown/modals
Implement the new modal designs
2023-09-18 11:38:03 -04:00
Robin
bfefcce466
Merge pull request #1445 from robintown/native-fonts
Use native system fonts on Android and iOS
2023-09-18 11:37:45 -04:00
Robin
282c345ad3 Invert the microphone and video button states
… so that they use the 'on' state when muted, and announce the action that they take rather than the current state, as suggested in internal design guidance.
2023-09-18 11:21:56 -04:00
Robin
1e9e096356 Fully remove walkie-talkie mode 2023-09-18 11:06:06 -04:00
Robin
db0d3b1ee9 Fix the feedback screen looking broken on mobile 2023-09-18 10:42:07 -04:00
Robin
bbf91ca867 Add a clarifying comment 2023-09-18 09:48:02 -04:00
Robin
d9ac072663
Update comment
Co-authored-by: Timo <16718859+toger5@users.noreply.github.com>
2023-09-18 09:14:46 -04:00
Timo
b979fc85bb
Check for existing track before creating one. (#1459)
Signed-off-by: Timo K <toger5@hotmail.de>
2023-09-18 12:43:03 +02:00
Robin
0f97d655d2 Add a prompt to launch Element X on mobile
This shows a bottom sheet on mobile asking the user whether they want to open the call in Element X, as soon as the page is loaded.
2023-09-17 17:48:03 -04:00
Robin
9db21e024e Start using the new modal component
This attempts to converge all our modals on the new modal component while changing their designs as little as possible. This should reduce the bundle size a bit and make the app generally feel like it's converging on the new designs, even though individual modals still remain to be revamped.
2023-09-17 14:46:36 -04:00
Robin
f609ec3f4c Implement new modal designs
They aren't yet used anywhere, but this will let us move on to implementing specific modal interactions from the new designs.

I made the design decision of making this new Modal component always be controlled by an explicit open state, which was inspired by some work I did with Jetpack Compose recently, where I saw that this makes state management and the behavior of components so much more obvious.
2023-09-17 14:40:14 -04:00
Robin
9736f0244b Use native system fonts on Android and iOS
This behavior is called for in the new designs, but Compound Web doesn't (yet) implement it by default.
2023-09-17 12:56:13 -04:00
Robin
2bb2107ead Merge branch 'livekit' into SimonBrandner/feat/gradient 2023-09-15 17:19:37 -04:00
Robin
224bfe58d1
Apply graphic positioning suggestion 2023-09-15 17:17:57 -04:00
Robin
1dd19a78ac
Merge pull request #1443 from vector-im/dbkr/publish_audio_at_start
Always publish microphone track when joining
2023-09-15 17:17:13 -04:00
Robin
564af13b59
Merge pull request #1410 from vector-im/dbkr/smooth_focus_switch
Smooth Focus Switching
2023-09-15 17:06:22 -04:00
Robin
27616c7227
Merge pull request #1436 from robintown/video-tile-1
First pass at the new video tile designs
2023-09-14 11:32:36 -04:00
Robin
915fb63356 First pass at the new video tile designs
Here, I've begun updating the styles of video tiles to match the new designs. Not yet updated: the local volume option is supposed to go inside an overflow menu now, but I haven't gotten to that yet.

To make the outlines on hovered / speaking tiles show up properly, I have to remove the usePageFocusStyle hack, which was preventing CSS outlines from being used for anything other than focus rings. I honestly can't tell what problem it was solving in the first place: focus rings still appear to behave as expected throughout the application.
2023-09-13 16:19:29 -04:00
Robin
21c234ebee Add accessible label to the in-call logo mark 2023-09-13 16:18:29 -04:00
Šimon Brandner
dd49bd517c
Add background gradient
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-09-13 17:53:12 +02:00
David Baker
a02261561c Add comment 2023-09-13 15:03:54 +01:00
David Baker
5570e3f806
More obvious syntax
Co-authored-by: Timo <16718859+toger5@users.noreply.github.com>
2023-09-13 14:32:21 +01:00
David Baker
c5118f38c5 Merge remote-tracking branch 'origin/livekit' into dbkr/smooth_focus_switch 2023-09-12 16:35:51 +01:00
David Baker
9efb15941c
Merge pull request #1348 from vector-im/dbkr/matrixrtcsession
Switch to the MatrixRTCSession layer in js-sdk
2023-09-12 16:33:02 +01:00
Timo
0a009a7b1c
disable turn servers in widget mode (#1396)
Signed-off-by: Timo K <toger5@hotmail.de>
2023-09-12 13:51:06 +02:00
David Baker
1fb210c5cc Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-09-12 11:30:46 +01:00
Robin
26ad532532 Merge branch 'livekit' into button-accessibility 2023-09-11 11:22:10 -04:00
Robin
6c25a25f8b Make the focus ring on Compound Web buttons consistent 2023-09-11 11:07:10 -04:00
Robin
8720ccada6 Count participants in a more sensible way 2023-09-11 10:32:03 -04:00
Robin
a9585b1fcf Merge branch 'livekit' into header-footer 2023-09-11 10:29:19 -04:00
David Baker
9d9765f668 Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-09-11 09:58:03 +01:00
Šimon Brandner
013e3296fe
Merge pull request #1387 from vector-im/SimonBrandner/task/avatar 2023-09-10 11:52:07 +02:00
Šimon Brandner
7fc0de573b
Remove leftover
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-09-10 11:50:09 +02:00
Robin
1445c42cc3 Implement new in-call header and footer designs 2023-09-08 16:41:23 -04:00
Robin
3545a8152a Improve accessibility of buttons
I noticed that none of these buttons had accessible labels, which is obviously no good since they rely on icons alone to convey purpose when not focused.
2023-09-08 15:39:49 -04:00
David Baker
2c1692bd4f Always publish microphone track when joining 2023-09-08 17:22:02 +01:00
David Baker
7b14d9dacb Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-09-07 14:09:52 +01:00
David Baker
38bb2895db
Tidier syntax
Co-authored-by: Robin <robin@robin.town>
2023-09-07 13:16:40 +01:00
David Baker
00f14c9814 Fix the mute icon being incorrect when using PTT
We were manipulating the participant's mute state directly for some
reason, just for setting the mute state directly, which bypased the
mutestates hook.
2023-09-06 11:45:01 +01:00
David Baker
8f570b7893 Include the colon in the user ID in the numebr of parts we check for 2023-09-06 09:12:04 +01:00
David Baker
83fd9a49ab Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-09-06 09:01:58 +01:00
Šimon Brandner
1cb0ad2f65
Switch to Avatar from Compound
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-09-06 08:04:51 +02:00
David Baker
3e72604391 Remove unintentional change 2023-09-05 17:38:43 +01:00
David Baker
973d396249 Remove extra device request on the video preview page
As per comment, livekit mutates the object that's passed in, so
we ended up re-requesting the devices in the next render because we
effectively passed in different options.
2023-09-05 17:34:55 +01:00
Šimon Brandner
40283ab760
Remove unused Facepile
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-09-04 20:03:25 +02:00
David Baker
c0443288c5 Smooth Focus Switching
For a few seconds after a focusn switch, keep old tiles from the previous
focus so that it doesn't look like everyone leaves & comes back.

Based on https://github.com/vector-im/element-call/pull/1348
Requires https://github.com/livekit/components-js/pull/620
2023-09-04 12:46:06 +01:00
Robin Townsend
8e090af370 Merge branch 'livekit' into in-call-footer 2023-09-01 13:13:02 -04:00
David Baker
dd9397d921 Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-08-31 14:38:05 +01:00
David Baker
0535a35a1c Remove unused memberships prop 2023-08-31 14:36:54 +01:00
Robin
7f5e02852c
Merge pull request #1380 from vector-im/renovate/classnames-2.x-lockfile
Update dependency classnames to v2.3.2
2023-08-31 09:33:22 -04:00
Robin
2d5ea82ecf Fix types 2023-08-31 09:27:06 -04:00
Robin
a35f1cb23f
Merge pull request #1369 from robintown/copy-icon-color
Use a more suitable color for copy buttons
2023-08-31 07:55:35 -04:00
Robin
3494f0fb4d
Merge branch 'livekit' into in-call-footer 2023-08-31 07:53:14 -04:00
David Baker
9d6d5a16e7 Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-08-31 10:48:54 +01:00
Šimon Brandner
c7c6e2c007
Merge pull request #1358 from vector-im/SimonBrandner/feat/e2ee-on 2023-08-31 11:32:27 +02:00
David Baker
b256755a0d Don't treat empty object as a valid sfu config
This was causing an extra reconnect cycle when the call was first
joined because it thought the previous SFU config was valid. This was
probably causing some client to fail to connect at all.
2023-08-31 09:44:23 +01:00
Robin Townsend
63ccd56573 Implement new designs for in-call footer buttons
This basically amounts to swapping out some CSS, the icons, and the Tooltip component.
2023-08-30 22:04:20 -04:00
Robin Townsend
6f4834e168 Use a more suitable color for copy buttons
This is a change that I meant to include in aa628cc63c, but forgot to commit.
2023-08-30 14:52:53 -04:00
David Baker
b5626dd97c Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-08-30 17:25:00 +01:00
David Baker
3a0c895b7a Fix e2ee audio in Firefox
Pull in changes for livekit and disable RED as per comment.
2023-08-30 17:17:45 +01:00
Šimon Brandner
1b2287646d
Enable E2EE by default
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-30 12:19:21 +02:00
David Baker
4cd274b91e Manually disconnect & reconnect the livekit call if our focus changes
Without breaking the 'disconnected' screen
2023-08-29 12:45:34 +01:00
Robin Townsend
aa628cc63c Adopt the Compound color system
As a first step towards adopting the Compound design system and the new Element Call designs, this pulls in Compound's color tokens and applies them to all existing components. I've tried to choose tokens based on the semantics of where they're used, but in some cases, where the new and old design systems differ in semantics, it was necessary to choose tokens based on their resulting color. These hacks can be removed as we implement more of the new designs.

There were a set of environment variables that we used for custom themes, but Compound has way too many design tokens for that approach to still be a good idea, so I decided to replace them all with a single environment variable that just lets you write arbitrary custom CSS.
2023-08-28 17:14:40 -04:00
David Baker
22533fc408 Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-08-25 14:40:52 +01:00
Šimon Brandner
9d142c1ea5
Fix useIsRoomE2EE()
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-25 15:30:58 +02:00
David Baker
e4e35eecfd Use Matrix room membership to look up room member
Rather than the matrixRTC memberships. We're essentially trusting
LiveKit's view of weho is connected here, so we may as well include
the real names of anyone we don't think is a matrixRTC participant,
for whatever reason.
2023-08-25 13:19:23 +01:00
David Baker
dc80a7e350 Log ghosts
and remove unsused code
2023-08-23 15:04:41 +01:00
David Baker
c516207199 Remove matrix-widget-api as a dep & remove livekit stuff from widget init
We'll always have matrix-widget-api as a dep through js-sdk so also
specifyin it ourselves just means we'll end up using a different version
when the js-sdk upgrade their copy and get wierd errors. We could add a
peerDependency if we really felt the need?
2023-08-23 10:12:09 +01:00
David Baker
918736e758 Removed now unused useGroupCall & OpenIDLoader 2023-08-23 10:06:08 +01:00
David Baker
274349f2e2 Use the right sfu config hook 2023-08-18 10:20:14 +01:00
David Baker
e39d00154d More hacking on rtcsession 2023-08-18 09:03:21 +01:00
David Baker
1716bd4418 Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-08-16 18:53:00 +01:00
David Baker
4242d45ba2 WIP refactor for removing m.call events 2023-08-16 18:41:27 +01:00
Šimon Brandner
d0fe055af6
Always allow setting a password
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-16 15:39:55 +02:00
Šimon Brandner
3ea908c59f
Revert "Remove optional call"
This reverts commit 74c70627dc.
2023-08-16 15:38:23 +02:00
Šimon Brandner
74c70627dc
Remove optional call
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-16 15:35:49 +02:00
Šimon Brandner
b4b33563be
Fix joining an existing room
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-16 15:13:28 +02:00
Šimon Brandner
5cd8c0538e
Revert changes to JoinExistingCallModal
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-16 13:59:41 +02:00
Šimon Brandner
54157611eb
Remove log line
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-16 13:56:31 +02:00
Šimon Brandner
22690c4a0b
Differentiate between E2EE and non-E2EE rooms by alias presence
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-11 17:00:05 +02:00
Šimon Brandner
edfae0138c
Add useIsRoomE2EE()
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-11 16:59:26 +02:00
Šimon Brandner
e246c053c1
Improve loading of passwords
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-11 16:57:55 +02:00
Šimon Brandner
c86ef40162
Goodbye, aliases
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-11 13:25:09 +02:00
Šimon Brandner
b2f5f90f37
More URL handling adjustements
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-11 13:16:35 +02:00
Šimon Brandner
506b363f38
Update E2EE texts
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-11 13:14:50 +02:00
Šimon Brandner
5c3d8efebf
Improve URL handling
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-08-10 15:19:43 +02:00
Šimon Brandner
8facf7808b
Merge remote-tracking branch 'upstream/livekit' into SimonBrandner/feat/hash 2023-08-10 09:43:05 +02:00
Robin Townsend
15348fb43c Disable full mesh in widget mode
We disabled full mesh on the client that's used in SPA mode, but forgot to do the same for the widget mode client.
2023-08-09 18:02:05 -04:00