Commit Graph

18 Commits (6d56c9eab4d7adadc266acbc4252960a8bb74804)

Author SHA1 Message Date
Michael Telatynski 915f8b3c9c Scale all mxc thumbs using device pixel ratio for hidpi
as we are notoriously bad at doing it everywhere we ought to, like the TopLeftMenu avatar
2021-04-26 18:25:49 +01:00
Travis Ralston 4ef3d176d9 Add ability to hide post-login encryption setup with customisation point
This is primarily intended for alternative setup UI or where the customisations end up configuring encryption some other way. If used without respecting the warnings in the docs, the user could end up at a blank page - use with caution, and only as directed.
2021-04-07 19:16:29 -06:00
Travis Ralston 8bc2356fd0 Fix crash on login when using social login
We weren't passing a matrix client through, and the peg wasn't set at this point. Just need to thread it through to the media endpoints.

Fixes https://github.com/vector-im/element-web/issues/16765
2021-03-25 22:22:43 -06:00
Travis Ralston 4ebd35f845 Remove unused functions 2021-03-10 12:32:18 -07:00
Travis Ralston 2a40bc87cc Fix ResizeMethod usage 2021-03-10 12:32:18 -07:00
Travis Ralston 533c9fed64 Appease the linter 2021-03-10 12:32:18 -07:00
Travis Ralston 1ac12479ca Convert cases of mxcUrlToHttp to new media customisation 2021-03-10 12:32:18 -07:00
Travis Ralston 53935782bc Convert DecryptFile to TS and modernize a bit 2021-03-10 12:32:18 -07:00
Travis Ralston 93f7f13c44 Early proof of concept for media customization support 2021-03-10 12:32:18 -07:00
Travis Ralston f4979065e4
Merge pull request #5445 from matrix-org/travis/hide-rooms
Make it possible in-code to hide rooms from the room list
2020-11-27 07:07:18 -07:00
J. Ryan Stinnett 25cc4b89b8 Add lifecycle customisation point after logout
This will help specific deployments that need to do something custom here such
as redirect the user or call some API after Element has logged out and cleared
storage.
2020-11-27 11:23:01 +00:00
J. Ryan Stinnett 86b2cd1f82 Use typeof in customisations to avoid repeating 2020-11-27 11:11:11 +00:00
Travis Ralston b9af446c1b Make it possible in-code to hide rooms from the room list
Fixes https://github.com/vector-im/element-web/issues/15745

This was surprisingly easy given the number of errors I remember last time, but here it is. This also includes an over-engineered VisibilityProvider with the intention that it'll get used in the future for things like Spaces and other X as Rooms stuff.
2020-11-25 19:42:57 -07:00
Travis Ralston 8ff8a8ad40 Appease the linter 2020-11-23 12:06:05 -07:00
Travis Ralston da32d9decd Add a customisation point for widget permissions and fix amnesia issues
The "remember my selection" option wasn't working because the `missing` set still included the approved permission. Solution: remove it from `missing`.

The customisation point is to allow forks to change which widgets get which additional capabilities dependent on their own rules.
2020-11-23 11:59:38 -07:00
Bruno Windels 41cb51e044 add interface import 2020-11-04 17:09:21 +01:00
Bruno Windels 625e03cde3 allow customising the source of dehydration key 2020-11-04 16:51:45 +01:00
J. Ryan Stinnett 388cb0e2c1 Add security customisation points
This adds various customisations point in the app for security related
decisions. By default, these do nothing, but would be customised at the
app level via module replacement (so that no changes are needed here in the
SDK).

Fixes https://github.com/vector-im/element-web/issues/15350
2020-10-16 11:21:44 +01:00