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
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
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
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
f05cae71a8
Use consistent import
2023-09-22 18:05:51 +01:00
David Baker
f35dd28bd3
Bump js-sdk
...
For https://github.com/matrix-org/matrix-js-sdk/pull/3745
2023-09-22 17:40:00 +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
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
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
David Baker
5b5e62c851
i18n
2023-09-20 13:14:01 +01: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
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
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
e604c7bcae
i18n
2023-09-19 18:26:23 +01:00
David Baker
2753f04f0b
Include the room name in the generated URL
2023-09-19 18:23:44 +01:00
David Baker
728e37b23c
i18n
2023-09-19 18:02:57 +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
David Baker
f97878bf21
Add nightly & main app to assetlinks
2023-09-19 09:53:08 +01:00
David Baker
4a5a7126f4
Lint the test files
2023-09-18 17:58:49 +01: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
David Baker
a02261561c
Add comment
2023-09-13 15:03:54 +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
a4d20f85a0
Use js-sdk from latest develop
2023-09-12 16:25:59 +01:00
David Baker
1fb210c5cc
Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession
2023-09-12 11:30:46 +01:00
David Baker
378ce403f5
Update livekit components
2023-09-12 10:34:13 +01:00
David Baker
9d9765f668
Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession
2023-09-11 09:58:03 +01: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
da5bef1206
Wrong finger or something
2023-09-06 16:23:49 +01:00
David Baker
b0e7b949da
Assetlinks for android too
2023-09-06 16:03:54 +01:00
David Baker
1757bc546d
Rename to not have file extension
...
As this is what apple need. Also make the docker container serve
it with the right content type.
2023-09-06 13:59:37 +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
5d969563f7
Prettier
2023-09-06 10:35:41 +01:00
David Baker
ef037c5c1d
Add apple site association
2023-09-06 10:22:02 +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
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
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
David Baker
0dbd3c2a58
Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession
2023-09-01 15:09:24 +01:00
David Baker
fe4d42f4d0
Update js-sdk
2023-08-31 14:43:53 +01:00
David Baker
981a29ebf7
yarn
2023-08-31 14:38:31 +01: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
David Baker
9d6d5a16e7
Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession
2023-08-31 10:48:54 +01: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
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
David Baker
923f081d74
Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession
2023-08-30 10:04:43 +01:00
David Baker
73b505987d
Unpin livekit versions
...
and upgrade to latest
2023-08-30 09:50:12 +01:00
David Baker
192c3295c9
Update js-sdk
2023-08-29 14:19:08 +01: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
David Baker
22533fc408
Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession
2023-08-25 14:40:52 +01: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
1955765cfd
Bump js-sdk
2023-08-23 14:03:38 +01:00
David Baker
af5e679089
i18n
2023-08-23 10:15:29 +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
095753c6a0
i18n
2023-08-23 10:03:05 +01:00
David Baker
ee77820e5b
Use latest js-sdk branch
2023-08-23 09:59:02 +01:00
David Baker
7a197a2700
Use js-sdk branch
2023-08-18 14:14:24 +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
David Baker
96f264db87
Put the 'v' back on the docker tag for release versions
2023-08-11 09:24:11 +01:00
David Baker
ba1ebad31e
Set version to commit sha for dev builds
2023-08-11 09:04:38 +01:00
David Baker
ec9635eb61
Fix main branch image publishing, try 2
...
* Swap out the 3rd party upload-asset which just seems to be broken
for the actual github one which does everything we need here.
* Update version of metadata action to one that supports is_default_branch
2023-08-08 14:14:12 +01:00
David Baker
188de8dc85
GHA doesn't support ??
2023-08-08 11:59:06 +01:00
David Baker
5490917d98
Fix tarball name for head branch builds
2023-08-08 11:51:21 +01:00
David Baker
d66f045743
Merge remote-tracking branch 'origin/livekit' into dbkr/react_to_livekit_disconnect
2023-07-24 21:35:09 +01:00
David Baker
8e6380db0b
Fix logs component states
...
Also just display text when sending which makes the button jump around
a bit but avoids hardcoding the width
2023-07-24 21:33:13 +01:00
David Baker
9fdafaf395
Add a useEventEmitterThree for livekit's event emitters and use it
2023-07-24 21:03:56 +01:00
David Baker
4643e167ce
i18n
2023-07-21 20:08:46 +01:00
David Baker
47365f2433
Merge branch 'toger5/connectionLostBanner' into connectionlostbanner_lk
...
NB. I had to more or less rewrite this as it had been refactored in the livekit branch.
2023-07-21 20:03:37 +01:00
David Baker
b44ab47a1a
Report more errors to sentry
...
Mostly from ErrorView
2023-07-21 11:58:21 +01:00
David Baker
e37783ad7e
i18n
2023-07-20 18:25:54 +01:00
David Baker
4071c9029c
Track call disconnections
2023-07-20 18:22:17 +01:00
David Baker
1675770196
Add disconnected screen for when livekit disconnects from the call
...
eg. when it gives up retrying to connect
Also refactors the rageshake button into a dedicated component that
we can just put wherever we want.
Fixes https://github.com/vector-im/element-call/issues/1268
2023-07-20 17:55:50 +01:00
David Baker
50ba23b7ea
Revert unintentional change
2023-07-18 16:59:51 +01:00
David Baker
4eb9326bd2
Enable debug logging
...
Fixes https://github.com/vector-im/element-call/issues/1267
2023-07-17 19:33:29 +01:00
David Baker
c15b2a62d5
Fix jsdoc
2023-07-17 19:22:22 +01:00
David Baker
f28cf0ce69
Fix embedded mode
...
This was trying to get the room alias, which causes the config to be
read. We don't need the room alias here though, so pass the flag to
not return it.
2023-07-17 19:16:28 +01:00
David Baker
d612c6a14c
Remove redundant server url from readme example
2023-07-17 12:41:46 +01:00
David Baker
be340ca4e4
Add more logs to JWT service code
2023-07-14 18:42:31 +01:00
David Baker
c99a400dd1
Prettier
2023-07-13 09:58:56 +01:00