Commit Graph

33524 Commits (cc0f38d5b4f3ca2eaedc00798b226f7c4449f8b3)

Author SHA1 Message Date
Michael Telatynski 7c2511a592
Apply `strictNullChecks` to `src/components/views/context_menus/*` (#10367) 2023-03-14 09:29:35 +00:00
Kerry 4c2b5df1f2
Poll history - access poll history from room settings (#10356)
* add poll history tab to room settings

* test poll history in room settings

* remove posthog tracking for poll his

* use consistent label for polls history
2023-03-13 22:08:59 +00:00
Kerry 9f66082486
Notifications: inline error message on notifications saving error (#10288)
* basic sync setup

* formatting

* get loudest value for synced rules

* more types

* test synced rules in notifications settings

* type fixes

* noimplicitany fixes

* remove debug

* tidying

* extract updatePushRuleActions fn to utils

* extract update synced rules

* just synchronise in one place?

* monitor account data changes AND trigger changes sync in notifications form

* lint

* setup LoggedInView test with enough mocks

* test rule syncing in LoggedInView

* strict fixes

* more comments

* one more comment

* add error variant for caption component

* tests for new error message

* tweak styles

* noImplicitAny

* revert out of date prettier changes to unrelated files

* limit inline message to radios only, tests

* strict fix
2023-03-13 21:59:04 +00:00
Kerry 72404d7216
Apply `strictNullChecks` to `src/utils/beacon/*` (#10337)
* strictnullchecks fixes in utils/beacon

* user filterBoolean
2023-03-13 21:55:50 +00:00
Michael Telatynski 503df62191
Conform more of the codebase to `strictNullChecks` (#10358
* Conform more of the codebase to `strictNullChecks`

* Fix types

* Iterate

* Iterate
2023-03-13 15:07:20 +00:00
Michael Weimann 41d88ad6ae
Fix user pill click (#10359) 2023-03-13 15:43:13 +01:00
Kerry 1e46efe89c
Poll history - make poll history independent from dialogs (#10349)
* move pollhistory from dialogs to polls directory

* rename PollHistoryDialog -> PollHistory

* rename references to PollHistoryDialog

* move title to PollHistory

* add option to collapse empty dialog header
2023-03-12 20:22:30 +00:00
Michael Telatynski 127a3b667c
Conform more of the codebase to `strictNullChecks` (#10350
* Conform more of the codebase to `strictNullChecks`

* Iterate

* Generics ftw

* Iterate
2023-03-10 14:55:06 +00:00
Michael Weimann d53e91802d
Fix start DM with pending third party invite (#10347)
* Fix start DM with pending third party invite

* Make the fix more clearly visible

---------

Co-authored-by: Janne Mareike Koschinski <jannemk@element.io>
Co-authored-by: Janne Mareike Koschinski <janne@kuschku.de>
2023-03-10 14:39:53 +00:00
Andy Balaam 102c4e5ae9
Improve performance of rendering a room with many hidden events (#10131)
* Test MessagePanel rendering with hidden events

* Cache the results of shouldShowEvent in MessagePanel

* Combine an event and its shouldShow info into a single object
2023-03-10 14:35:40 +00:00
Andy Balaam f8e645396e
Support dynamic room predecessor in SpaceProvider (#10348) 2023-03-10 11:01:45 +00:00
Andy Balaam 6141cca652
Support dynamic room predecessors for RoomProvider (#10346) 2023-03-10 10:40:38 +00:00
Andy Balaam 2e064e57a0
Support dynamic room predecessors in ForwardDialog (#10344) 2023-03-10 09:41:30 +00:00
Andy Balaam 42abfb1fac
Support dynamic room predecessors in SpaceHierarchy (#10341) 2023-03-10 09:41:14 +00:00
Andy Balaam b646250c90
Support dynamic room predecessors in OwnBeaconStore (#10339)
* Support dynamic room predecessors in OwnBeaconStore

* Fix type of dynamicWatcherRef

* Mock a function missing from client
2023-03-10 09:15:54 +00:00
Andy Balaam 37d2b7b17b
Support dynamic room predecessors in AddExistingToSpaceDialog (#10342) 2023-03-09 17:17:28 +00:00
Andy Balaam 421c1b9281
Support dynamic room predecessors in leave-behaviour (#10340) 2023-03-09 14:49:59 +00:00
Andy Balaam f90bc40cfc
Support dynamic room predecessors in StopGapWidgetDriver (#10338) 2023-03-09 13:02:29 +00:00
Patrick Cloke aca077cf2b
Add tests for createEditContent which mirror tests for createMessageContent. (#10331) 2023-03-09 12:15:48 +00:00
Michael Weimann 85e8d27697
Extract avatars from permalink hook (#10328) 2023-03-09 12:48:36 +01:00
Andy Balaam edd8865670
Support dynamic room predecessors in WidgetLayoutStore (#10326)
* Support dynamic room predecessors in WidgetLayoutStore

* Improve TS correctness in WidgetLayoutStore

* Test to cover onNotReady to quieten SonarCloud

---------

Co-authored-by: Janne Mareike Koschinski <janne@kuschku.de>
2023-03-09 10:18:23 +00:00
Andy Balaam acb7dd84ac
Support dynamic room predecessors in SpaceStore (#10332) 2023-03-09 09:31:02 +00:00
Michael Telatynski 01d7b795ab
Silence sanitize-html warning (#10334) 2023-03-09 09:08:42 +00:00
Kerry cef821c21b
Polls: sync push rules on changes to account_data (#10287)
* basic sync setup

* formatting

* get loudest value for synced rules

* more types

* test synced rules in notifications settings

* type fixes

* noimplicitany fixes

* remove debug

* tidying

* extract updatePushRuleActions fn to utils

* extract update synced rules

* just synchronise in one place?

* monitor account data changes AND trigger changes sync in notifications form

* lint

* setup LoggedInView test with enough mocks

* test rule syncing in LoggedInView

* strict fixes

* more comments

* one more comment
2023-03-09 00:20:06 +00:00
Janne Mareike Koschinski 2b39eac7b5
Handle more edge cases in ACL updates (#10279) 2023-03-08 16:33:58 +01:00
Andy Balaam 4ee57a36e0
Support dynamic room predecessors in BreadcrumbsStore (#10295)
* Tests for BreadcrumbsStore.meetsRoomRequirements

* Tests for appending rooms to BreadcrumbsStore

* Support dynamic room predecessors in BreadcrumbsStore
2023-03-08 15:13:32 +00:00
Michael Telatynski bee4759208
Remove flux dependency (#10313) 2023-03-08 14:19:05 +00:00
Andy Balaam b8d502be2e
Support dynamic room predecessors in RoomNotificationStateStore (#10297)
* Tests for RoomNotificationStateStore emitting events

* Support dynamic room predecessors in RoomNotificationStateStore

* Remove unused arguments from emit call.

UPDATE_STATUS_INDICATOR is used in:
* SpacePanel
* MatrixChat
* RoomHeaderButtons

but these arguments are not used in any of those places. Remove them so
when I refactor I don't have to make up values for them.

* Fix broken test (wrong expected args to emit)

UPDATE_STATUS_INDICATOR is used in:
* SpacePanel
* MatrixChat
* RoomHeaderButtons

but these arguments are not used in any of those places. Remove them so
when I refactor I don't have to make up values for them.

* Update the RoomNotificationStore whenever the predecessor labs flag changes

* Fix type errors

* Fix other tests that trigger our new watcher
2023-03-08 14:18:03 +00:00
Michael Telatynski 80fc0997a4
Explicitly specify all `children` props (#10312) 2023-03-08 13:28:07 +00:00
Michael Weimann ad26925bb6
Refactor pill and add tests (#10304) 2023-03-08 13:06:50 +01:00
Michael Telatynski c0e40217f3
Apply `strictNullChecks` to src/stores/widgets/* (#10324)
* Apply `strictNullChecks` to src/stores/widgets/*

* Iterate

* Iterate
2023-03-08 11:48:58 +00:00
Sebbones 0c1c3f1cde
Improved a11y for Field feedback and Secure Phrase input (#10320)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-03-08 11:32:50 +00:00
Michael Weimann 6fa00a20b0
Use compound icons (#10292) 2023-03-08 11:11:01 +01:00
Michael Telatynski 0db0d4b09d
Remove unused code (#10322) 2023-03-08 10:04:07 +00:00
Michael Telatynski f74867e57b
Allow parsing png files to fail if thumbnailing is successful (#10308) 2023-03-07 15:48:23 +00:00
maheichyk 3e340d5906
Fixes user authentication when registering via the module API (#10257)
* Fixes authentication when user is registered via module API
* Remove "on_logging_in" action

---------

Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
Co-authored-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
2023-03-07 16:24:44 +01:00
Michael Telatynski 4b8bada24b
Apply `strictNullChecks` around the codebase (#10302
* Apply `strictNullChecks` around the codebase

* Iterate PR
2023-03-07 13:19:18 +00:00
Michael Telatynski 2191a2d820
Apply `strictNullChecks` to src/components/views/emojipicker/* (#10298) 2023-03-07 11:28:48 +00:00
Michael Telatynski 32aa18ff2e
Apply `strictNullChecks` to `src/components/views/auth/*` (#10299
* Apply `strictNullChecks` to src/components/views/auth/*

* Iterate PR
2023-03-07 10:45:55 +00:00
Priit Jõerüüt ebfc22808e Translated using Weblate (Estonian)
Currently translated at 100.0% (3744 of 3744 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/
2023-03-07 10:23:20 +00:00
Weblate 55b579afef Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/
2023-03-07 09:56:37 +00:00
Weblate 4c61291c44 Merge branch 'origin/develop' into Weblate. 2023-03-07 09:55:42 +00:00
Priit Jõerüüt 45f387a387 Translated using Weblate (Estonian)
Currently translated at 99.9% (3742 of 3745 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/
2023-03-07 09:55:42 +00:00
Besnik Bleta 58885cb4ee Translated using Weblate (Albanian)
Currently translated at 99.6% (3731 of 3745 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sq/
2023-03-07 09:55:40 +00:00
Jozef Gaal 68cca0bf12 Translated using Weblate (Slovak)
Currently translated at 100.0% (3745 of 3745 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/
2023-03-07 09:55:38 +00:00
waclaw66 46693b59eb Translated using Weblate (Czech)
Currently translated at 100.0% (3745 of 3745 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/
2023-03-07 09:55:35 +00:00
Linerly d1753f512c Translated using Weblate (Indonesian)
Currently translated at 100.0% (3745 of 3745 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/id/
2023-03-07 09:55:33 +00:00
Ihor Hordiichuk 9680aca37f Translated using Weblate (Ukrainian)
Currently translated at 100.0% (3745 of 3745 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/
2023-03-07 09:55:32 +00:00
Jeff Huang 58ad92906b Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3745 of 3745 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-07 09:55:29 +00:00
Glandos 0dfb9bd59b Translated using Weblate (French)
Currently translated at 100.0% (3745 of 3745 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/
2023-03-07 09:55:27 +00:00
Vri 29f38adceb Translated using Weblate (German)
Currently translated at 100.0% (3745 of 3745 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
2023-03-07 09:55:24 +00:00
Michael Telatynski 65aafaf2e0
Fix incorrect copy in space creation flow (#10296) 2023-03-07 09:55:14 +00:00
Weblate a179348367 Merge branch 'origin/develop' into Weblate. 2023-03-06 17:21:15 +00:00
renovate[bot] 307df9d2c3
Update all non-major dependencies (#9766)
* Update all non-major dependencies

* Prettier

* Revert axe-core

* Revert axe-core

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-03-06 17:21:09 +00:00
Weblate 498e6448ac Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/
2023-03-06 17:15:17 +00:00
Weblate 8bcf75e3df Merge branch 'origin/develop' into Weblate. 2023-03-06 17:14:22 +00:00
Ihor Hordiichuk f277405d98 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (3745 of 3745 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/
2023-03-06 17:14:22 +00:00
Michael Telatynski 5e21ca43ec
Fix space settings dialog having rogue title tooltip (#10293) 2023-03-06 17:14:11 +00:00
Besnik Bleta 4de60f6bb4 Translated using Weblate (Albanian)
Currently translated at 99.6% (3731 of 3745 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sq/
2023-03-06 16:25:22 +00:00
Weblate ef9554f2c5 Merge branch 'origin/develop' into Weblate. 2023-03-06 15:17:52 +00:00
Michael Telatynski bda54a8b20
Kill off enzyme in preference of react testing library (#10255) 2023-03-06 15:17:46 +00:00
Weblate 3a7a177ee1 Merge branch 'origin/develop' into Weblate. 2023-03-06 15:10:11 +00:00
Linerly 54498f1543 Translated using Weblate (Indonesian)
Currently translated at 100.0% (3745 of 3745 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/id/
2023-03-06 15:10:11 +00:00
Szimszon c784ff38b3 Translated using Weblate (Hungarian)
Currently translated at 99.8% (3738 of 3745 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/
2023-03-06 15:10:09 +00:00
Michael Weimann 394bffbae4
Await start DM in right panel (#10290) 2023-03-06 16:09:56 +01:00
Weblate 1de5b0152c Merge branch 'origin/develop' into Weblate. 2023-03-06 12:13:24 +00:00
Michael Telatynski 667ec166d7
Remove Enzyme tests in favour of React testing-library (#10289) 2023-03-06 12:13:17 +00:00
Weblate fda058b4ca Merge branch 'origin/develop' into Weblate. 2023-03-06 11:45:43 +00:00
Michael Weimann 303b878b17
Pillify http and non-prefixed matrix.to links (#10277) 2023-03-06 12:45:37 +01:00
Weblate fc6933da35 Merge branch 'origin/develop' into Weblate. 2023-03-06 11:09:08 +00:00
Michael Weimann 9b74b0f057
Only allow to start a DM with one email if encryption by default is enabled (#10253) 2023-03-06 12:08:17 +01:00
Weblate 4ed6d78ca6 Merge branch 'origin/develop' into Weblate. 2023-03-06 11:08:12 +00:00
Michael Weimann db6ee53535
Implement third-party invite waiting room (#10229) 2023-03-06 12:08:04 +01:00
random 638437c0b1 Translated using Weblate (Italian)
Currently translated at 100.0% (3742 of 3742 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/
2023-03-06 10:01:26 +00:00
Open Culture Foundation d052f037ea Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3742 of 3742 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-05 12:33:46 +00:00
Weblate 8cf1c81503 Merge branch 'origin/develop' into Weblate. 2023-03-03 13:31:59 +00:00
Michael Telatynski ad8d27d2b2
Fix some features not being configurable via `features` (#10276) 2023-03-03 13:31:51 +00:00
Weblate 50ddcf98b0 Merge branch 'origin/develop' into Weblate. 2023-03-03 12:34:45 +00:00
Michael Weimann 6746ce2da3
Fix start DM via right panel (#10278) 2023-03-03 13:34:38 +01:00
Weblate 8732cf50eb Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/
2023-03-03 09:39:03 +00:00
Weblate 9ee04a2466 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/
2023-03-03 09:33:37 +00:00
Weblate 9bbbd5b8eb Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/
2023-03-03 09:20:53 +00:00
Weblate d405090a98 Update translation files
Updated by "Cleanup translation files" hook in Weblate.

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/
2023-03-02 17:37:18 +00:00
Weblate 25ca47885f Merge branch 'origin/develop' into Weblate. 2023-03-02 17:36:24 +00:00
Will Hunt 2d2b40ddac
Remove hosting link provider from Element (#10270)
* Remove hosting link provider from Element

* fix whitespace
2023-03-02 17:36:16 +00:00
Weblate aed005a7aa Merge branch 'origin/develop' into Weblate. 2023-03-02 13:54:50 +00:00
Hugh Nimmo-Smith da246965d9
Support for v2 of MSC3903 (#10165) 2023-03-02 13:54:43 +00:00
Weblate b61f8649bf Merge branch 'origin/develop' into Weblate. 2023-03-02 10:41:23 +00:00
Michael Weimann ac3c95fa84
Directly convert Matrix and room Ids to pills (#10267) 2023-03-02 11:41:17 +01:00
Weblate d3574a5b06 Merge branch 'origin/develop' into Weblate. 2023-03-02 09:58:15 +00:00
Glandos 13fdf6b84b Translated using Weblate (French)
Currently translated at 100.0% (3756 of 3756 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/
2023-03-02 09:58:15 +00:00
Kerry de6a1a661c
apply strictnullchecks to src/components/views/beacon/* (#10272) 2023-03-02 09:58:05 +00:00
Weblate ea6bf06b90 Merge branch 'origin/develop' into Weblate. 2023-03-02 08:44:18 +00:00
Michael Weimann ffa047be68
Find DMs with pending third-paty invites (#10256) 2023-03-02 09:44:12 +01:00
Weblate 39ff7cb9ff Merge branch 'origin/develop' into Weblate. 2023-03-02 05:33:32 +00:00
Jozef Gaal 4782f3110e Translated using Weblate (Slovak)
Currently translated at 100.0% (3756 of 3756 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/
2023-03-02 05:33:32 +00:00
Ihor Hordiichuk bd14077b5b Translated using Weblate (Ukrainian)
Currently translated at 100.0% (3756 of 3756 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/
2023-03-02 05:33:30 +00:00
Jeff Huang c735f0f5d4 Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3756 of 3756 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-02 05:33:27 +00:00
Kerry 10a765472b
Polls push rules: synchronise poll rules with message rules (#10263)
* basic sync setup

* formatting

* get loudest value for synced rules

* more types

* test synced rules in notifications settings

* type fixes

* noimplicitany fixes

* remove debug

* tidying
2023-03-02 05:33:19 +00:00
Weblate 0cf8008ba2 Merge branch 'origin/develop' into Weblate. 2023-03-01 15:59:43 +00:00