Commit graph

28962 commits

Author SHA1 Message Date
Michael Telatynski
6123ccb2eb Merge branch 'develop' of github.com:matrix-org/matrix-react-sdk into t3chguy/fix/18096 2021-07-28 17:45:15 +01:00
Michael Telatynski
67ef263940 Refactor SpaceButton to be more reusable and add context menu to Home button 2021-07-28 17:40:33 +01:00
Michael Telatynski
b3a28bde89 Factor out useEventEmitterState hook 2021-07-28 17:39:56 +01:00
Michael Telatynski
cdf0d98c3f Fix IconizedContextMenuCheckbox layout 2021-07-28 17:39:02 +01:00
James Salter
d401789f9e Ignore eslint conventions in disastrous posthog type definitions 2021-07-28 17:26:24 +01:00
James Salter
7b4a7711b2 Declare return types for all public methods, even void ones 2021-07-28 17:20:22 +01:00
James Salter
e4722ee457 Override posthog type definitions to point to a locally fixed type definition file
Posthog's type definitions refer to types in transitive dependencies we don't want to include.

Clone posthog.d.ts locally, remove the offending types from it, and provide an overriding mapping in tsconfig.

If this proves annoying to maintain, posthog.d.ts could just be an empty file.
2021-07-28 17:14:36 +01:00
James Salter
0a951501b2 lint 2021-07-28 17:04:18 +01:00
James Salter
e5d36e9a81 Use arrow function instead of bind 2021-07-28 17:02:26 +01:00
James Salter
b1bd5f57a4 Document IEvent.properties, fix IWelcomeScreenLoad
IEvent.properties is a placeholder that needs to be overriden by extenders for type validation to take place.

IWelcomeScreenLoad should have had properties declared for it. Because it didn't, a faulty call using it was possible.
2021-07-28 16:43:13 +01:00
James Salter
13ef819ba6 isEnabled returns a boolean 2021-07-28 16:42:56 +01:00
Šimon Brandner
537ce40f42
Add a TODO
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-07-28 16:32:55 +02:00
James Salter
ce80e5a463 Remove superfluous unused argument 2021-07-28 14:44:28 +01:00
James Salter
279871ce01 Add types 2021-07-28 14:44:16 +01:00
Michael Telatynski
07b9d6b30b Fix styling of setting flag descriptions in preferences
and add description to spaces all/home setting
and make it an account setting rather than device one
and hide it from the Beta card
2021-07-28 14:39:19 +01:00
James Salter
a687bab52f Use readonly shorthand for posthog param 2021-07-28 14:38:41 +01:00
James Salter
60bc283455 Add return type to getRedactedCurrentLocation 2021-07-28 14:22:57 +01:00
James Salter
9420b81eeb Rename mysterious _ to beforeFirstSlash 2021-07-28 14:22:32 +01:00
Weblate
693b715f73 Merge branch 'origin/develop' into Weblate. 2021-07-28 13:15:53 +00:00
Bog Rol
90c848efe2 Translated using Weblate (Hungarian)
Currently translated at 99.8% (3077 of 3083 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/
2021-07-28 13:15:53 +00:00
Travis Ralston
b8781b7552
Merge pull request #6455 from matrix-org/travis/widget-customisation
Add customisation point for declaring widget variables
2021-07-28 07:15:45 -06:00
James Salter
da3bf5a097 rename knownScreens -> whitelistedScreens 2021-07-28 14:15:40 +01:00
Šimon Brandner
7c4e3efbff
Extend PureComponent to avoid unnecessary renders
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-07-28 15:11:31 +02:00
Šimon Brandner
91e65534fa
await setState to avoid races where we would try to play media without an HTMLVideoElement
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2021-07-28 15:04:33 +02:00
James Salter
d5bef53f8b Use snake case for feature name 2021-07-28 14:03:17 +01:00
James Salter
868d92781d Add copyright header 2021-07-28 14:01:21 +01:00
Weblate
e4dd5f7aea Merge branch 'origin/develop' into Weblate. 2021-07-28 12:52:05 +00:00
Besnik Bleta
072e9a30cb Translated using Weblate (Albanian)
Currently translated at 99.7% (3079 of 3086 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sq/
2021-07-28 12:52:05 +00:00
XoseM
6bb539d774 Translated using Weblate (Galician)
Currently translated at 100.0% (3086 of 3086 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/gl/
2021-07-28 12:52:00 +00:00
Michael Telatynski
f91a20cb02
Merge pull request #6484 from matrix-org/t3chguy/fix/18095 2021-07-28 13:51:45 +01:00
James Salter
7c62386915 lint 2021-07-28 11:28:19 +01:00
James Salter
bd7e2dee3d Merge remote-tracking branch 'origin' into posthog-analytics 2021-07-28 11:13:22 +01:00
Weblate
1265724060 Merge branch 'origin/develop' into Weblate. 2021-07-28 10:10:45 +00:00
waclaw66
3ca9f0763f Translated using Weblate (Czech)
Currently translated at 100.0% (3086 of 3086 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/
2021-07-28 10:10:45 +00:00
Germain
771dda0341
Merge pull request #6472 from SimonBrandner/fix/call-view/18221 2021-07-28 11:10:37 +01:00
James Salter
8ef18d0f9a Add module level comment about anonymity behaviour 2021-07-28 11:03:40 +01:00
James Salter
c3e715c1ca i18n 2021-07-28 10:45:32 +01:00
James Salter
c206127f68 Track screen name when tracking page view 2021-07-28 10:45:03 +01:00
James Salter
4048cb3c37 Default to Anonymous tracking when no OptIn setting is present 2021-07-28 10:20:16 +01:00
James Salter
a6df687196 Tidy up interface and add some comments 2021-07-28 09:54:37 +01:00
jelv
42444d4bb6 Translated using Weblate (Dutch)
Currently translated at 100.0% (3086 of 3086 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/nl/
2021-07-28 08:41:43 +00:00
James Salter
1d81bdc6f9 Interface changes and anonymity fixes 2021-07-28 09:37:08 +01:00
Weblate
358f02f054 Merge branch 'origin/develop' into Weblate. 2021-07-28 08:10:34 +00:00
XoseM
4d8f4c8d15 Translated using Weblate (Galician)
Currently translated at 98.4% (3036 of 3085 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/gl/
2021-07-28 08:10:34 +00:00
waclaw66
58f607d99c Translated using Weblate (Czech)
Currently translated at 100.0% (3085 of 3085 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/
2021-07-28 08:10:31 +00:00
Jeff Huang
8f48044b65 Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3085 of 3085 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2021-07-28 08:10:28 +00:00
Szimszon
a34a1f5536 Translated using Weblate (Hungarian)
Currently translated at 99.8% (3080 of 3085 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/
2021-07-28 08:10:24 +00:00
libexus
4f0e3d0069 Translated using Weblate (German)
Currently translated at 97.5% (3009 of 3085 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
2021-07-28 08:10:10 +00:00
Michael Telatynski
98f3a5120c
Merge pull request #6492 from matrix-org/t3chguy/fix/18275.1 2021-07-28 09:10:00 +01:00
Michael Telatynski
f8106ef39b Fix CreateRoomDialog exploding when making public room outside of a space 2021-07-28 08:42:09 +01:00