Commit Graph

1788 Commits

Author SHA1 Message Date
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