Commit Graph

4981 Commits

Author SHA1 Message Date
Hugh Nimmo-Smith
93710ff42a Remove unused code 2024-12-06 12:00:16 +00:00
Hugh Nimmo-Smith
5a1a1a7a4e Remove changes that should be in https://github.com/element-hq/element-call/pull/2771 2024-12-06 11:59:38 +00:00
Hugh Nimmo-Smith
d1c8ac1e0c Merge branch 'livekit' into toger5/loading_border 2024-12-06 11:57:41 +00:00
Timo
43c81a2758 Make video tiles be based on MatrixRTC member not LiveKit participants (#2701)
* make tiles based on rtc member

* display missing lk participant + fix tile multiplier

* add show_non_member_participants config option

* per member tiles

* merge fixes

* linter

* linter and tests

* tests

* adapt tests (wip)

* Remove unused keys

* Fix optionality of nonMemberItemCount

* video is optional

* Mock RTC members

* Lint

* Merge fixes

* Fix user id

* Add explicit types for public fields

* isRTCParticipantAvailable => isLiveKitParticipantAvailable

* isLiveKitParticipantAvailable

* Readonly

* More keys removal

* Make local field based on view model class not observable

* Wording

* Fix RTC members in tes

* Tests again

* Lint

* Disable showing non-member tiles by default

* Duplicate screen sharing tiles like we used to

* Lint

* Revert function reordering

* Remove throttleTime from bad merge

* Cleanup

* Tidy config of show non-member settings

* tidy up handling of local rtc member in tests

* tidy up test init

* Fix mocks

* Cleanup

* Apply local override where participant not yet known

* Handle no visible media id

* Assertions for one-on-one view

* Remove isLiveKitParticipantAvailable and show via encryption status

* Handle no local media (yet)

* Remove unused effect for setting

* Tidy settings

* Avoid case of one-to-one layout with missing local or remote

* Iterate

* Remove option to show non-member tiles to simplify code review

* Remove unused code

* Remove more remnants of show-non-member-tiles

* iterate

* back

* Fix unit test

* Refactor

* Expose TestScheduler as global

* Fix incorrect type assertion

* Simplify speaking observer

* Fix

* Whitespace

* Make it clear that we are mocking MatrixRTC memberships

* Test case for only showing tiles for MatrixRTC session members

* Simplify diff

* Simplify diff

These changes are in https://github.com/element-hq/element-call/pull/2809

* .

* Whitespaces

* Use asObservable when exposing subject

* Show "waiting for media..." when no participant

* Additional test case

* Don't show "waiting for media..." in case of local participant

* Make the loading state more subtle
 - instead of a label we show a animated gradient

* Use correct key for matrix rtc foci in code comment. (#2838)

* Update src/tile/SpotlightTile.tsx

Co-authored-by: Timo <16718859+toger5@users.noreply.github.com>

* Update src/state/CallViewModel.ts

Co-authored-by: Timo <16718859+toger5@users.noreply.github.com>

* Make the purpose of BaseMediaViewModel.local explicit

* Use named object instead of unnamed array for spotlightAndPip

* Refactor spotlightAndPip into spotlight and pip

* Use if statement instead of ternary for readability in spotlight and pip logic

* Review feedback

* Fix tests for CallEventAudioRenderer

* Lint

* Revert "Make the loading state more subtle"

This reverts commit 765f7b4f31.

* Update src/state/CallViewModel.ts

Co-authored-by: Timo <16718859+toger5@users.noreply.github.com>

* Fix spelling

* Remove a non-null assertion that failed at runtime

---------

Co-authored-by: Hugh Nimmo-Smith <hughns@element.io>
Co-authored-by: Hugh Nimmo-Smith <hughns@users.noreply.github.com>
2024-12-06 11:28:37 +00:00
Hugh Nimmo-Smith
21b62dbd89 Use a consistent background colour for video tiles and avatars (#2868) 2024-12-05 13:26:31 +00:00
fkwp
d09efa3cfe Merge pull request #2872 from element-hq/renovate/github-actions
Update GitHub Actions
2024-12-05 12:34:55 +01:00
renovate[bot]
818abaac0f Update GitHub Actions 2024-12-05 11:32:31 +00:00
renovate[bot]
76ba02584d Update dependency vaul to v1.1.1 (#2656)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-05 12:10:35 +01:00
Hugh Nimmo-Smith
27620b9148 Rename en-GB language to en (#2866)
Fixes https://github.com/element-hq/element-call/issues/2865

If we want to have GB and US specific terms later on we can then add then in as `en-GB` and `en-US`.
2024-12-04 14:51:29 +00:00
fkwp
68867810f7 Merge pull request #2864 from element-hq/fkwp/update_README_state_after
add information about MSC4222 state_after
2024-12-03 17:23:35 +01:00
fkwp
3495f5b472 linting 2024-12-03 16:57:53 +01:00
fkwp
260a1df21b linting 2024-12-03 16:55:30 +01:00
fkwp
44e5d2ea91 add MSC4222 2024-12-03 16:54:37 +01:00
fkwp
5e449bd03f typo 2024-12-03 16:54:28 +01:00
fkwp
cf0bb4676a add information about MSC4222 state_after 2024-12-03 16:51:14 +01:00
renovate[bot]
97fd1f3696 Update dependency @vector-im/compound-design-tokens to v2 (#2671)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-03 10:08:01 +01:00
renovate[bot]
f4883ac098 Update dependency @types/node to v22 (#2695)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-03 10:07:31 +01:00
Timo
820ac7f28a Make the loading state more subtle
- instead of a label we show a animated gradient
2024-12-02 18:51:26 +00:00
Hugh Nimmo-Smith
d1e90939b1 Lint 2024-12-02 18:50:50 +00:00
Hugh Nimmo-Smith
40526cb7c1 Developer setting to show non-member tiles
This is based on top of https://github.com/element-hq/element-call/pull/2701
2024-12-02 18:49:11 +00:00
Hugh Nimmo-Smith
e4087b2b45 Lint 2024-12-02 18:33:14 +00:00
Hugh Nimmo-Smith
79ea8d9741 Merge branch 'livekit' into toger5/tiles_based_on_rtc_member 2024-12-02 18:31:21 +00:00
Hugh Nimmo-Smith
70deaf0e57 Fix tests for CallEventAudioRenderer 2024-12-02 18:30:04 +00:00
Will Hunt
cc260811e2 Add a lower limit to duplicate tiles. (#2854)
* Add a limit to duplicate tiles.

* missed a change
2024-12-02 17:15:33 +00:00
Hugh Nimmo-Smith
a37e8fdb82 Merge branch 'livekit' into toger5/tiles_based_on_rtc_member 2024-12-02 15:44:32 +00:00
Hugh Nimmo-Smith
a37c3bfb48 Show hostname in developer settings (#2857)
Also refactored developer settings labels into own locale section
2024-12-02 15:43:19 +00:00
Will Hunt
ea6f2952af Add sound effect for call joined / left (#2794)
* Add renderer for call joined / left

* lint

* Add new sounds

* Updates sounds in renderer

* lint

* move import

* pad sounds with silence

* lint

* tidy

* Drop autoplay since we now subscribe correctly.

* Comitting test files I am going to be going to lunch so will tidy up in a little while.

* finish up tests

* Add support for multiple channels per sound.

* lint
2024-12-02 15:16:58 +00:00
Hugh Nimmo-Smith
370d8bd5d5 Review feedback 2024-12-02 14:45:20 +00:00
Hugh Nimmo-Smith
7fdcbb3292 Use if statement instead of ternary for readability in spotlight and pip logic 2024-12-02 14:35:33 +00:00
Hugh Nimmo-Smith
33f398ddcf Refactor spotlightAndPip into spotlight and pip 2024-12-02 14:10:31 +00:00
Hugh Nimmo-Smith
968de5eeeb Use named object instead of unnamed array for spotlightAndPip 2024-12-02 14:00:12 +00:00
Hugh Nimmo-Smith
3d0bfaefe8 Make the purpose of BaseMediaViewModel.local explicit 2024-12-02 13:53:40 +00:00
Hugh Nimmo-Smith
743638dfc4 Merge branch 'livekit' into toger5/tiles_based_on_rtc_member 2024-12-02 13:33:04 +00:00
renovate[bot]
e142493380 Update all non-major dependencies (#2852)
* Update all non-major dependencies

* prettier

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Timo <toger5@hotmail.de>
2024-12-02 12:10:20 +01:00
fkwp
34cc50b84d Merge pull request #2851 from element-hq/toger5/light-raise-hand
Use light background
2024-11-29 18:22:38 +01:00
Timo
84b2dc8680 Use light background
- the icons and the font is dark so the bg should not be darkened. But making it lighter is making it easier to read.
2024-11-29 17:48:18 +01:00
Timo
e12f4fada0 Bump js-sdk (#2850)
-  This fixes, that clients dont resend keys if other join right after someone else just left.
2024-11-29 11:58:36 +01:00
fkwp
8cd681c6cc Merge pull request #2849 from element-hq/renovate/livekit-client
Update dependency livekit-client to v2.7.0
2024-11-29 11:51:05 +01:00
renovate[bot]
82360c674c Update dependency livekit-client to v2.7.0 2024-11-29 10:44:54 +00:00
Hugh Nimmo-Smith
32ccfe8813 Fix Cache-Control header for docker images (#2847) 2024-11-28 17:40:06 +00:00
Timo
65e962bf1b Fix wrong hand raise margins in pip tile. (#2840) 2024-11-28 17:24:24 +00:00
Timo
28da8c48da Mute state improvements including muting if skipLobby=true in SPA (Based on #2834) (#2846) 2024-11-28 18:05:12 +01:00
Hugh Nimmo-Smith
f7c7f41afd Upgrade js-sdk to develop with MSC4222 state_after support (#2841)
Diff 2210255d6f...8fc77c595a
2024-11-27 20:43:56 +00:00
Hugh Nimmo-Smith
133dc26642 Update src/state/CallViewModel.ts
Co-authored-by: Timo <16718859+toger5@users.noreply.github.com>
2024-11-27 14:47:31 +00:00
Hugh Nimmo-Smith
cc1f0d5d19 Update src/tile/SpotlightTile.tsx
Co-authored-by: Timo <16718859+toger5@users.noreply.github.com>
2024-11-27 14:46:14 +00:00
Timo
52cb3938ef Use correct key for matrix rtc foci in code comment. (#2838) 2024-11-27 14:44:12 +00:00
Timo
765f7b4f31 Make the loading state more subtle
- instead of a label we show a animated gradient
2024-11-26 12:59:06 +01:00
Hugh Nimmo-Smith
8f9bee79ae Don't show "waiting for media..." in case of local participant 2024-11-25 21:30:54 +00:00
Hugh Nimmo-Smith
16666b8933 Additional test case 2024-11-25 21:23:18 +00:00
Hugh Nimmo-Smith
4f2591feae Show "waiting for media..." when no participant 2024-11-25 21:17:20 +00:00