Commit Graph

33 Commits

Author SHA1 Message Date
Half-Shot
31bf036aa1 fix 2024-11-08 16:19:03 +00:00
Half-Shot
90fa6d02d7 Clear reactions if we're clearing timeouts. 2024-11-08 13:14:45 +00:00
Half-Shot
63f1b7346f Clear timeouts on component close. 2024-11-08 09:47:05 +00:00
Half-Shot
17f2647d89 Use Intl.Segmenter 2024-11-08 09:46:52 +00:00
Half-Shot
fabbdac1ca lint 2024-11-07 10:12:31 +00:00
Half-Shot
f4f0821987 Fix test 2024-11-07 09:53:47 +00:00
Half-Shot
a262c4b59f Merge remote-tracking branch 'origin/livekit' into hs/emoji-reactions 2024-11-07 09:10:42 +00:00
Will Hunt
bc0ab92394 Add feature to release hand raised when the tile indicator is clicked. (#2721)
* Refactor to add support for lowering hand on indicator click.

* Cleanup and lint.

* fix icon being a little off
2024-11-06 11:00:19 +00:00
Half-Shot
4db7b4fbf5 Const the active time. 2024-11-05 14:40:29 +00:00
Half-Shot
56c40720e8 Fix case where you could send larger strings as emoji 2024-11-05 14:34:51 +00:00
Will Hunt
d251af4e6d Make event listener more resillient. 2024-11-04 12:12:37 +00:00
Will Hunt
3e69e2529c Merge remote-tracking branch 'origin/livekit' into hs/emoji-reactions 2024-11-04 11:14:36 +00:00
Milton Moura
1897210a60 Hand raise feature (#2542)
* Initial support for Hand Raise feature

Signed-off-by: Milton Moura <miltonmoura@gmail.com>

* Refactored to use reaction and redaction events

Signed-off-by: Milton Moura <miltonmoura@gmail.com>

* Replacing button svg with raised hand emoji

Signed-off-by: Milton Moura <miltonmoura@gmail.com>

* SpotlightTile should not duplicate the raised hand

Signed-off-by: Milton Moura <miltonmoura@gmail.com>

* Update src/room/useRaisedHands.tsx

Element Call recently changed to AGPL-3.0

* Use relations to load existing reactions when joining the call

Signed-off-by: Milton Moura <miltonmoura@gmail.com>

* Links to sha commit of matrix-js-sdk that exposes the call membership event id and refactors some async code

Signed-off-by: Milton Moura <miltonmoura@gmail.com>

* Removing RaiseHand.svg

* Check for reaction & redaction capabilities in widget mode

Signed-off-by: Milton Moura <miltonmoura@gmail.com>

* Fix failing GridTile test

Signed-off-by: Milton Moura <miltonmoura@gmail.com>

* Center align hand raise.

* Add support for displaying the duration of a raised hand.

* Add a sound for when a hand is raised.

* Refactor raised hand indicator and add tests.

* lint

* Refactor into own files.

* Redact the right thing.

* Tidy up useEffect

* Lint tests

* Remove extra layer

* Add better sound. (woosh)

* Add a small mode for spotlight

* Fix timestamp calculation on relaod.

* Fix call border resizing video

* lint

* Fix and update tests

* Allow timer to be configurable.

* Add preferences tab for choosing to enable timer.

* Drop border from raised hand icon

* Handle cases when a new member event happens.

* Prevent infinite loop

* Major refactor to support various state problems.

* Tidy up and finish test rewrites

* Add some explanation comments.

* Even more comments.

* Use proper duration formatter

* Remove rerender

* Fix redactions not working because they pick up events in transit.

* More tidying

* Use deferred value

* linting

* Add tests for cases where we got a reaction from someone else.

* Be even less brittle.

* Transpose border to GridTile.

* lint

---------

Signed-off-by: Milton Moura <miltonmoura@gmail.com>
Co-authored-by: fkwp <fkwp@users.noreply.github.com>
Co-authored-by: Half-Shot <will@half-shot.uk>
Co-authored-by: Will Hunt <github@half-shot.uk>
2024-11-04 09:54:13 +00:00
Half-Shot
fd46f8ad46 Add sounds. 2024-11-01 14:49:00 +00:00
Half-Shot
373a12a3b5 First PoC for reactions 2024-11-01 14:11:36 +00:00
Half-Shot
748cc58c3f Be even less brittle. 2024-11-01 08:41:43 +00:00
Half-Shot
a9e6aa3d54 Add tests for cases where we got a reaction from someone else. 2024-10-31 16:39:59 +00:00
Half-Shot
21380c7791 linting 2024-10-31 16:25:31 +00:00
Half-Shot
e49eb55a3d More tidying 2024-10-31 16:17:13 +00:00
Half-Shot
a354a4013d Fix redactions not working because they pick up events in transit. 2024-10-31 16:04:37 +00:00
Half-Shot
32294984fe Even more comments. 2024-10-29 17:05:54 +00:00
Half-Shot
a45b01dc00 Add some explanation comments. 2024-10-29 16:57:06 +00:00
Half-Shot
ff7da135ca Tidy up and finish test rewrites 2024-10-29 16:49:37 +00:00
Half-Shot
5a5c1bedfe Major refactor to support various state problems. 2024-10-29 16:19:01 +00:00
Half-Shot
cd73ad8794 Prevent infinite loop 2024-10-29 15:19:16 +00:00
Half-Shot
528e692d6b Handle cases when a new member event happens. 2024-10-29 15:08:59 +00:00
Half-Shot
07d345191b Fix timestamp calculation on relaod. 2024-10-28 22:24:20 +00:00
Half-Shot
9d01e8c129 Lint tests 2024-10-28 17:44:17 +00:00
Half-Shot
ba921f8c67 Tidy up useEffect 2024-10-28 16:23:17 +00:00
Half-Shot
4a712dcaa2 Redact the right thing. 2024-10-28 16:11:28 +00:00
Half-Shot
4501e670b2 Refactor into own files. 2024-10-28 15:57:55 +00:00
Half-Shot
1c8e547b9a Add support for displaying the duration of a raised hand. 2024-10-25 17:09:45 +01:00
Milton Moura
69a50fb2a8 Check for reaction & redaction capabilities in widget mode
Signed-off-by: Milton Moura <miltonmoura@gmail.com>
2024-09-19 11:40:46 +01:00