Michael Telatynski
7fa01ffb06
Improve typing around event emitter handlers ( #7816 )
2022-02-22 12:18:08 +00:00
Šimon Brandner
eca64d776a
Remove layout
workaround ( #7853 )
2022-02-21 10:05:01 +00:00
Šimon Brandner
9aa77f3417
Remove autoplayGifsAndVideos
workaround ( #7852 )
2022-02-21 10:02:45 +00:00
Timo
325e2ba99b
Right panel store refactor ( #7313 )
...
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
2022-01-05 16:14:44 +01:00
Michael Telatynski
9ed771ad7a
Have LocalEchoWrapper emit updates so the app can react faster ( #7358 )
2021-12-17 08:53:03 +00:00
Aaron Raimist
7b94e13a84
Merge branch 'develop' into sort-imports
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-12-09 08:34:20 +00:00
James Salter
5219b6be80
Analytics opt in for posthog ( #6936 )
...
* Add a new flag pseudonymousAnalyticsOptIn replacing analyticsOptIn, stored at account level, so people only need to opt in once.
* Show a toast in login to users that have analyticsOptIn set but not yet pseudonymousAnalyticsOptIn prompting them confirm the new method is okay. Update the copy of the existing opt-in toast. Don't notify users that previously opted out.
* Update the copy in settings
* Add a new learn more dialog
* Support a new config flag analyticsOwner which is used in these toasts when explaining which entity the data is sent to ("Help improve %(analyticsOwner)"). If unset, display brand. This allows deployments whose brand differs from the receiver of the analytics to explain the situation to their users (e.g. AcmeCorp badges their app, but explains the data is sent to Element, not them)
* The new opt-in and flags are only used when posthog is configured; prior to that there are no changes to UX or tracking behaviour.
2021-12-06 09:39:33 +11:00
Travis Ralston
3c06e7f7a0
Add option to change the size of images/videos in the timeline ( #7017 )
...
Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
Co-authored-by: J. Ryan Stinnett <jryans@gmail.com>
Co-authored-by: Timo K <toger5@hotmail.de>
2021-11-17 15:19:30 +00:00
Aaron Raimist
bdc56be863
Auto fix
...
Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-10-22 17:23:37 -05:00
Dariusz Niemczyk
5290afcc4c
Replace console.warn with logger.warn
...
Related https://github.com/vector-im/element-web/issues/18425
2021-10-18 14:08:23 +02:00
Šimon Brandner
9533f7b0b9
Don't setValue() if that would lead to setting a null/undefined
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-10-13 19:47:49 +02:00
Šimon Brandner
c246b027be
Add missing space
...
Co-authored-by: Dariusz Niemczyk <3636685+Palid@users.noreply.github.com>
2021-09-02 17:39:13 +02:00
Šimon Brandner
9b2c380b64
Split autoplay gifs and videos in to different settings
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-09-01 17:28:15 +02:00
Šimon Brandner
a8b86da058
Set the new layout setting when reading it
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-08-26 18:09:14 +02:00
Michael Telatynski
bd175c6f40
Improve and consolidate typing
2021-07-10 15:43:46 +01:00
J. Ryan Stinnett
782e793925
Merge remote-tracking branch 'origin/develop' into jryans/rework-linting-2
2021-06-29 15:27:24 +01:00
J. Ryan Stinnett
ae0a8b8da4
Auto-fix lint errors
2021-06-29 13:11:58 +01:00
Germain Souquet
6607294573
Deprecate Tinter and TintableSVG
2021-06-28 17:13:23 +01:00
Šimon Brandner
7efbd50e31
Handle migration from useIRCLayout to layout
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-01-26 13:30:34 +01:00
J. Ryan Stinnett
cb66f7493b
Skip account settings for guest users
...
Homeservers don't allow this currently, so we should use something else instead
for such cases.
2021-01-14 15:58:27 +00:00
Travis Ralston
71643862c0
Implement new config style for features
2020-08-17 13:24:55 -06:00
Michael Telatynski
cd29edb442
Write more typescript defs
2020-08-05 09:13:01 +01:00
Travis Ralston
bb48ee669b
Make SettingsHandler truly abstract
2020-07-30 08:50:36 -06:00
Travis Ralston
648c3c7796
Fix various type definitions
2020-07-30 08:49:42 -06:00
Travis Ralston
ae3eb3da9c
Fix MatrixClient access in settings
2020-07-29 11:51:42 -06:00
Travis Ralston
51968a8072
Convert RoomSettingsHandler to TS
2020-07-28 22:16:54 -06:00
Travis Ralston
c7b28b4566
Convert RoomDeviceSettingsHandler to TS
2020-07-28 22:14:33 -06:00
Travis Ralston
c4f4e2aa0a
Convert RoomAccountSettingsHandler to TS
2020-07-28 22:04:25 -06:00
Travis Ralston
21e5bccb62
Convert LocalEchoWrapper to TS
2020-07-28 21:57:00 -06:00
Travis Ralston
4f6480c037
Convert DeviceSettingsHandler to TS
2020-07-28 21:53:07 -06:00
Travis Ralston
8097810784
Convert DefaultSettingsHandler to TS
2020-07-28 21:52:57 -06:00
Travis Ralston
32844d4624
Convert ConfigSettingsHandler to TS
2020-07-28 21:49:45 -06:00
Travis Ralston
e4d8cca861
Specify an error to appease the linter
2020-07-28 21:46:45 -06:00
Travis Ralston
7de727915d
Convert AccountSettingsHandler to TS
2020-07-28 16:31:13 -06:00
Travis Ralston
e3364ba7a4
Convert MatrixClientBackedSettingsHandler to TS
2020-07-28 16:20:05 -06:00
Travis Ralston
5f5efa1448
Decorate abstract classes as abstract
2020-07-28 16:15:09 -06:00
Travis Ralston
c96def81ae
Convert SettingsHandler to TS
2020-07-28 15:25:57 -06:00
Travis Ralston
1f7f40736b
Fix imports for SettingLevel to point at new file
2020-07-28 11:53:43 -06:00
Michael Telatynski
a7f92f35f5
Sync recently used reactions list across sessions
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-07-16 04:15:32 +01:00
Travis Ralston
7963ed6d04
Mute "Unknown room caused setting update" spam
...
See comment enclosed within.
Fixes https://github.com/vector-im/riot-web/issues/14254
2020-07-07 13:42:15 -06:00
Travis Ralston
1fe3e33dbf
Factor out cloning to a util and use it everywhere
2020-06-22 14:14:43 -06:00
Travis Ralston
9e3c101172
Clone reads of account data to prevent mutation
2020-06-22 11:24:04 -06:00
Travis Ralston
fe65b7631d
Soften warning about lack of rooms in setting updates
2020-06-22 10:57:08 -06:00
Travis Ralston
099661c2aa
Only fire setting changes for changed settings
...
Previously we were firing updates for everything, which is bad. This has an effect of causing the room list to update itself every time the user goes to toggle some account settings.
2020-06-22 10:18:38 -06:00
Michael Telatynski
1628fc668c
Fix LocalEchoWrapper cache on falsey room ids
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2020-06-17 01:05:19 +01:00
Travis Ralston
a05dafc300
Check for null config settings a bit safer
...
Fixes https://github.com/vector-im/riot-web/issues/12254
2020-02-12 01:58:21 +00:00
Travis Ralston
042bd35d79
Fix MatrixClientPeg imports
2019-12-22 21:15:54 -07:00
Travis Ralston
5253f29928
Build out a store for the right panel state machine
...
This should make it easier to funnel the expected behaviour through a central block of code.
2019-12-05 15:31:01 -07:00
Michael Telatynski
6121420113
Merge branch 'develop' into t3chguy/remove_bluebird
2019-11-20 15:21:23 +00:00
Travis Ralston
2f89f28496
Remove extraneous paranoia
...
The value is nullchecked later on.
2019-11-18 14:25:04 -07:00