Commit Graph
1767 Commits
Author SHA1 Message Date
Robin Townsend 4fc8598e36 Keep tile elements in a stable order 2023-02-01 11:50:52 -05:00
Robin Townsend 6784d2ba97 Remove redundant key prop 2023-02-01 11:50:25 -05:00
Robin Townsend 0915e327e1 Implement somewhat working drag & drop and improve render memoization 2023-02-01 11:32:10 -05:00
Robin Townsend eedf8a6d1b Make tiles draggable (but not yet droppable) 2023-02-01 00:17:22 -05:00
Šimon Brandner ab70926274 Delint
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-01-31 11:04:48 +01:00
Šimon Brandner 6ff8215e7a Reduce diff
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-01-31 11:01:21 +01:00
Šimon Brandner c492fcd448 Always show debug info
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-01-31 11:00:13 +01:00
Robin Townsend d7db845f3b Scroll snap was a bad idea 2023-01-30 23:52:46 -05:00
Robin Townsend 82c7293308 Replace premature animation optimization with a potentially wiser one 2023-01-30 23:44:19 -05:00
Robin Townsend 0166eb67fb Make avatars scale smoothly during animations 2023-01-30 23:43:45 -05:00
Robin Townsend e3081c1c06 Try out a snappier spring 2023-01-30 23:32:26 -05:00
Robin Townsend f540f48461 Fix some layout bugs 2023-01-30 23:32:00 -05:00
Robin Townsend 55dece274f Fix some tile resizing bugs 2023-01-30 17:04:43 -05:00
Šimon Brandner abb43bfe59 Show debug only conditionally
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-01-30 22:07:00 +01:00
Šimon Brandner 807a6a8545 Add call feed size debug info
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-01-30 20:43:21 +01:00
Robin Townsend 4e73c07cb2 Try out scroll snapping 2023-01-30 09:35:40 -05:00
Robin Townsend 3805a2f20e Format with Prettier 2023-01-29 21:56:07 -05:00
Robin Townsend 4e35984900 Extract tile size change logic into a function 2023-01-29 21:54:53 -05:00
Robin Townsend e99294c3f1 Simplify some code 2023-01-29 21:45:10 -05:00
Robin Townsend 8912daa922 Make tiles resizable and fix some miscellaneous bugs 2023-01-25 23:51:36 -05:00
Šimon Brandner 3d0906a145 Merge remote-tracking branch 'upstream/main' into feature_sfu
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-01-25 17:13:01 +01:00
Robin Townsend 045103dbc9 Backfill the grid as people leave by moving tiles along paths 2023-01-25 02:30:52 -05:00
David Baker d2631a3e02 Fix the rageshake modal on mobile
As per comment

Unsure if this is the best fix - ideally we wouldn't go into no-controls
mode at all, but this part doesn't know whether the dialog is open so
the only thing we could really do is tweak the threshold, or possibly
guess based on width instead?
2023-01-23 17:52:02 +00:00
David Baker d65464e4db Avoid duplicate PTT button 'unhold' events
We called the 'unhold' function even if the button wasn't held which
probably will have been generating unmute events even when we weren't
muted.

Also use separate handlers for events so we can have specific log lines
(and also see where the event comes from when caught in the debugger).
2023-01-23 16:53:24 +00:00
Robin Townsend 59f3b05c07 Merge branch 'main' into big-grid 2023-01-23 08:57:04 -05:00
David Baker 4f8bd18efd Don't try to register users until client is loaded 2023-01-20 17:59:57 +00:00
David Baker 47c2e9e101 Don't crash if we can't find our own member event 2023-01-20 12:10:58 +00:00
David Baker 81997624d4 Fix joining rooms by ID
We use this in embedded mode. Regressed by https://github.com/vector-im/element-call/pull/860

Lowercasing room IDs obviously makes them break, so… don't do that.
2023-01-20 10:51:52 +00:00
7e1033f5a4 Add colon in comment
Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-01-20 09:35:50 +00:00
David Baker 524f530dce Lowercase room alias before joining 2023-01-19 19:20:42 +00:00
Robin Townsend 46d1351d83 More fixes 2023-01-18 13:38:29 -05:00
Robin Townsend 2318d75bc7 prettier 2023-01-18 11:33:40 -05:00
Robin Townsend 486674c442 fixes 2023-01-18 11:32:51 -05:00
Robin Townsend d3fba7fd5f WIP minus unfinished split grid layouts 2023-01-18 10:52:12 -05:00
David Baker e1c4042d15 Add units to constant 2023-01-17 10:16:55 +00:00
David Baker 8284d0da60 Don't crash if no stream on callfeed 2023-01-16 18:10:50 +00:00
David Baker 860aff4958 Change rageshake persistence to throttled flushing
Rather than every 30 seconds. This way we'll save logs for sessions
lasting less than 30 seconds which we previously didn't. Also save
on window unload just in case that doesn't catch everything.

Plus remove some more unused params.
2023-01-16 17:27:49 +00:00
David Baker 13b1dcf785 Mostly cosmetic fixes to rageshake
* Remove duplicate copyright header
 * Remove ts-ignores by just using the objects directly rather than via
   event.target
 * Use error.message rather than errorCode which TS doesn't know about
   and may or may not exist.
 * Remove some unused things like the skip rageshake function and
   the option to init rageshakes without storage.
 * Turn single function with a boolean param to make it take two entirely
   separate code paths into two functions.
2023-01-16 16:43:45 +00:00
David Baker abd909c03a Log undecryptable to-device events
Listen for the new undecryptable to-device event event and log
events for it in Posthog & Sentry, and make it visible in the
call flow diagram.
2023-01-13 18:27:22 +00:00
Šimon Brandner c0bc52cdf2 Merge remote-tracking branch 'upstream/feature_sfu' into feature_simulcast
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-01-13 17:48:01 +01:00
Šimon Brandner e0f0dccc55 Reduce diff
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-01-13 17:42:15 +01:00
Šimon Brandner 4e64c71a4c Merge remote-tracking branch 'upstream/main' into feature_sfu
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-01-13 17:40:05 +01:00
David Baker afdce66896 Merge remote-tracking branch 'origin/main' into dbkr/prevent_keyrepeat_mute_spam 2023-01-13 11:57:02 +00:00
David Baker 1b08a5cac3 Rename file 2023-01-13 11:56:29 +00:00
David BakerandGitHub 843e7690fa Merge pull request #845 from vector-im/dbkr/disable_keyboard_shortcuts_rageshake
Disable keyboard shortcuts when feedback modal is open
2023-01-13 11:55:51 +00:00
David Baker a5977fc992 Rename to useCallViewKeyboardShortcuts 2023-01-13 11:52:40 +00:00
David Baker f2193302c1 Prevent mute event spam from key repeats 2023-01-12 18:26:21 +00:00
David Baker 9ba4ce429f Disable keyboard shortcuts when feedback modal is open 2023-01-12 17:31:19 +00:00
David Baker 5f26534496 Use IndexedDB storage in dev mode, just without the worker
As per comment, we can't use workers in Vite dev mode. We previously
fell back to the memory store but this ends up with it working significantly
differently in dev mode to production, eg. dev mode would always start
by doing an initial sync, so old to-device messages would arrive again.

There's no need to fall all the way back to the memory store though,
we can use the IndexedDB store without the worker.
2023-01-12 15:17:46 +00:00
Šimon Brandner 72a02b1b01 Add proper (un)subscribe logic
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-01-10 21:00:30 +01:00