Commit Graph

34466 Commits (1d9c24e96e1a515ab1eaa97f55daacdee9b63db0)

Author SHA1 Message Date
Robin 87e2274ae7
Enable pagination for overlay timelines (#10757)
* Update @types/jest to 29.2.6

This adds the correct types for the contexts field on mock objects, which I'll need shortly

* Enable pagination for overlay timelines
2023-05-12 16:27:41 +00:00
Richard van der Hoff a597da26a0
DeviceListener: replace calls to deprecated APIs (#10883)
* DeviceListener: replace calls to deprecated APIs

* fix tests
2023-05-12 15:55:01 +00:00
Michael Telatynski f3534b42df
Add string for membership event where both displayname & avatar change (#10880)
* Add string for membership event where both displayname & avatar change

* i18n and tests
2023-05-12 11:54:24 +00:00
Michael Telatynski 15ed660975
Improve bundle size, dynamic imports & remove parse5 (#10865)
* Remove unused import

* Lazy load tar-js and pako for rageshakes

* Update cheerio imports

* Replace parse5 with DOMParser

* Remove stale comment
2023-05-12 11:13:08 +00:00
Michael Telatynski 9611cbf6c4
Fix people space notification badge not updating for new DM invites (#10849)
* Add regression test

* Fix people space notification state not updating for new DM invites
2023-05-12 10:49:41 +00:00
Suguru Hirahara cb779fe872
Conform the style rules of `GeneralUserSettingsTab.tsx` to the style guide (#10595)
* Nesting: `mx_GeneralUserSettingsTab_changePassword`

* Nesting: `mx_Spinner`

* Conform the style rules to the naming policy

For elements inside "mx_GeneralUserSettingsTab_accountSection" and "mx_GeneralUserSettingsTab_discovery"

* Conform `mx_GeneralUserSettingsTab_discovery_existing*` to the naming policy
2023-05-12 10:33:01 +00:00
Michael Telatynski e6421fded5
Use brand variable consistently (#10867) 2023-05-12 10:25:20 +00:00
Michael Telatynski 684141d310
Add tooltip to disabled invite button due to lack of permissions (#10869) 2023-05-12 10:25:16 +00:00
Michael Telatynski f758cbd38a
Make more of the codebase conform to strict types (#10859) 2023-05-12 09:49:37 +01:00
Michael Telatynski 6f58dd49e3
Respect configured auth_header_logo_url for default Welcome page (#10870) 2023-05-12 09:45:04 +01:00
Michael Telatynski 2cee8a4b01
Specify lazy loading for avatars (#10866)
* Specify lazy loading for avatars

so browser doesn't fetch eagerly if off-screen

* Update snapshots
2023-05-11 18:29:48 +00:00
alunturner 0889dc55da
Room and user mentions for plain text editor (#10665)
* update useSuggestion

* update useSuggestion-tests

* add processMention tests

* add test

* add getMentionOrCommand tests

* change mock href for codeQL reasons

* fix TS issue in test

* add a big old cypress test

* fix lint error

* update comments

* reorganise functions in order of importance

* rename functions and variables

* add endOffset to return object

* fix failing tests

* update function names and comments

* update comment, remove delay

* update comments and early return

* nest mappedSuggestion inside Suggestion state and update test

* rename suggestion => suggestionData

* update comment

* add argument to findSuggestionInText

* make findSuggestionInText return mappedSuggestion

* fix TS error

* update comments and index check from === -1 to < 0

* tidy logic in increment functions

* rename variable

* Big refactor to address multiple comments, improve behaviour and add tests

* improve comments

* tidy up comment

* extend comment

* combine similar returns

* update comment

* remove single use variable

* fix comments
2023-05-11 14:28:42 +00:00
Michael Telatynski 68ff19fb4b
Fix regression in emoji picker order mangling after clearing filter (#10854)
* Add regression test for emoji picker order mangling after clearing filter

* Fix regression in emoji picker order mangling after clearing filter

* Iterate

* Update src/components/views/emojipicker/EmojiPicker.tsx
2023-05-11 13:24:39 +00:00
Michael Weimann 0a6fe83a8c
Add audible notifcation on broadcast error (#10654)
* Add audible notifcation on broadcast error

* Add error audio file

* Add error ogg

* Catch play broadcast error

* Await play error sound

* Add promise error handling

* Add comment about audio elements
2023-05-11 12:15:34 +00:00
Kerry 41c96877d3
Fix: Edit history modal crash (#10834)
* failing test

* handle nodes without children in messagediffutils
2023-05-11 10:21:02 +00:00
Michael Telatynski 949557b5c6
Fall back from server generated thumbnail to original image (#10853)
* Add test for falling back from thumbnail to original

* Fall back from server generated thumbnail to original image
2023-05-11 09:20:14 +00:00
Michael Telatynski 82e32035fd
Conform more of the codebase to `strictNullChecks` (#10842) 2023-05-11 09:56:56 +01:00
Suguru Hirahara 5eea2c8b02
Remove unused class name - mx_AppsDrawer_fullWidth (#10830)
Added by e897e97fd6
Deprecated by bf3c49b8df
2023-05-11 08:14:43 +00:00
Suguru Hirahara 16ec3b5d7b
Add `appearance-user-settings-tab.spec.ts` (#10697)
* Add `appearance-user-settings-tab.spec.ts`

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Empty commit

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Fix a comment

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

---------

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2023-05-11 06:33:50 +00:00
Michael Telatynski 456c66db5b
Conform more of the codebase to strictNullChecks (#10800) 2023-05-10 08:41:55 +01:00
Suguru Hirahara 5cdbdd9f97
Update some class names of AppTile on the naming policy (#10777) 2023-05-09 21:07:12 +00:00
Suguru Hirahara c4f59d4d56
Add E2E test of `ThemeChoicePanel` (#10469)
* Add E2E test of ThemeChoicePanel

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Edit a comment

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Apply feedback

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Remove obsolete data-testId attributes

They has become obsolete with bfa8152538a3a0804ac14e231578d0cba73aa308.

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Update a jest snapshot

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

---------

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2023-05-09 13:48:55 +00:00
Michael Telatynski 52017f62e1
Conform more of the codebase to `strictNullChecks` (#10738) 2023-05-09 18:24:40 +01:00
Richard van der Hoff 5e8488c283
`DeviceListener`: use new `getUserDeviceInfo` method (#10826)
* DeviceListener: use new `getUserDeviceInfo` method

https://github.com/matrix-org/matrix-js-sdk/pull/3272 added a new
`CryptoApi.getUserDeviceInfo` method, which also works with rust crypto. Update
DeviceListener to use it, thus making many of the cypress tests work on Element
Web R.

* add missing await

... mostly to silence the quality gate
2023-05-09 13:39:51 +00:00
Michael Telatynski 339e7dab18
Use semantically correct elements for room sublist context menu (#10831) 2023-05-09 11:13:55 +00:00
Michael Telatynski 08368860f4
Avoid calling prepareToEncrypt onKeyDown (#10828)
* Avoid calling prepareToEncrypt onKeyDown

* Iterate
2023-05-09 10:56:12 +00:00
Michael Telatynski 5d0b5131f2
Treat thumbnail upload failures as complete upload failures (#10829)
Without this it'll be treated the same as a thumbnailing failure which falls back to m.file
2023-05-09 09:52:07 +00:00
Suguru Hirahara a0228994dc
Remove unused class names from `AppWarning` (#10823) 2023-05-09 07:59:42 +00:00
Suguru Hirahara ed5c02be6d
Fix long room address and name not being clipped on room info card and update `_RoomSummaryCard.pcss` (#10811)
* Handle a long room address and name with ellipsis on RoomSummaryCard

* Use a class selector for maintainability

Sort the selectors
2023-05-09 07:56:09 +00:00
Boluwatife Omosowon 739eec8555
Allows search to recognize full room links (#8275)
* fix matrix search link

* fix matrix search link

Signed-off-by: Boluwatife Omosowon <boluomosowon@gmail.com>

* fix: allow full link search

Signed-off-by: Boluwatife Omosowon <boluomosowon@gmail.com>

* fix: allow full link search on new search feature

Signed-off-by: Boluwatife Omosowon <boluomosowon@gmail.com>

* improve transformSearchTerm function

Signed-off-by: Boluwatife Omosowon <boluomosowon@gmail.com>

* improve transformSearchTerm function

Signed-off-by: Boluwatife Omosowon <boluomosowon@gmail.com>

* add review changes

* Signed-off-by: Boluwatife Omosowon <boluomosowon@gmail.com>

added review correction

changed the transformSearchTerm function to use parsePermaLink
removed extra spaces

* add angle brackets to copyright email title

* removed extra space

Signed-off-by: Boluwatife Omosowon <boluomosowon@gmail.com>

* Update src/utils/SearchInput.ts

Co-authored-by: Travis Ralston <travpc@gmail.com>

* fixed spolight dialog search for room and user links

* added tests for transformSearchTerm

* removed transformSearchTerm from room search bar

* replaces two test cases to one that should return the primaryEntityId if the search term was a permalink

* corrected ts issues

* changed type of transformSearchTerm to string

* changed return value from empty string to the original search term if the primaryEntityId of the parsedLink is null

* changed return value from empty string to the original search term if the primaryEntityId of the parsedLink is null

* refactored transformSearchTerm and added a new test case

* rewrote transformSearchTerm doc

* changed mocked return values of test case - should return the original search term if the search term is a permalink and the primaryEntityId is null

* lint corrections

---------

Signed-off-by: Boluwatife Omosowon <boluomosowon@gmail.com>
Co-authored-by: Boluwatife Omosowon <boluwatifeomosowon@Jesus-Loves-You.local>
Co-authored-by: Travis Ralston <travpc@gmail.com>
2023-05-09 07:55:50 +00:00
Michael Telatynski bf641d1823
Fix more detached DOM leaks (#10806) 2023-05-09 07:50:57 +00:00
Michael Telatynski 84786ad342
Null-guard sync handler in AutoRageshakeStore (#10805) 2023-05-09 07:50:46 +00:00
Michael Telatynski 3692de0460
Update finite automate to match user identifiers as per spec (#10798) 2023-05-09 07:46:19 +00:00
Kerry d103d2e3dd
set default activity ordering to natural for room list (#10820) 2023-05-08 20:58:53 +00:00
Kerry 727c885687
Fix: Threads button is highlighted when I create a new room (#10819)
* fix thread button highlight logic

* lint
2023-05-08 20:58:27 +00:00
Suguru Hirahara aed5fcf64a
Update `mx_AppLoading` to improve maintainability (#10783)
* Nesting: mx_AppLoading

* Conform class and animation name to the naming policy

* Nesting for maintainability, preventing the rule from becoming an orphan

* Rename the class: mx_AppLoading to mx_AppTile_loading
2023-05-08 12:38:04 +00:00
Suguru Hirahara fec1785a32
Wrap the title heading on Notification panel with mx_BaseCard_header_title (#10818) 2023-05-08 07:43:59 +00:00
Suguru Hirahara 53fcb0c36e
Remove mixin `mx_Tooltip_dark` and rename class `mx_Tooltip_dark` (#10801)
* Remove a mixin - mx_Tooltip_dark

The mixin has been used on `_AppsDrawer.pcss` only.

* Rename mx_Tooltip_dark based on the naming policy

'mx_Tooltip_dark' has been used on `AppPermission.tsx` only.
2023-05-08 03:01:00 +00:00
Kerry b8482b6bc4
Fix: No feedback when waiting for the server on a /delete_devices request with SSO (#10795)
* add spinner while requests in progress during sso interactive auth

* strict
2023-05-07 21:12:45 +00:00
alunturner de16d347e9
Apply strictNullChecks to src/LegacyCallHandler.tsx (#10690) 2023-05-05 17:08:07 +01:00
Suguru Hirahara f6f5d44bde
Remove `mx_HeaderButtons` class and add a test (#10713)
* Remove `_HeaderButtons.pcss`

Now that mx_HeaderButtons class is no longer necessary as ARIA "tabpanel" role has been removed from it, it is possible to remove both the class and the style rule for it.

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Tests: add `room-header.spec.ts` and edit the existing tests

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Edit snapshot widths settings

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Fix typo

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Edit a comment

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Optimize a test to check default buttons

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Check highlighted buttons

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Loop

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

---------

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2023-05-05 15:29:10 +00:00
Michael Telatynski 499d8110b3
Fix emitter handler leak in ThreadView (#10803)
* Fix emitter handler leak in ThreadView

* Help gc react stateNodes
2023-05-05 15:05:58 +00:00
alunturner 01364ebf45
Apply strictNullChecks to src/components/views/voip/* (#10692)
* change interface to discriminated union

* fix ts errors

* use definite assertion operator

* use | undefined, instead of assertion operator

* correct the button press arguments for dial button

* update props to have `Props` suffix

* add comment

* remove unnecessary default

* remove unnecessary comment

* make classname match filename

* setup test file

* export consts for testing

* add initial test

* add another DialPad test

* fix imports
2023-05-05 13:26:31 +00:00
Andy Balaam 7856d84034
Fix use of logger that assumes it interpolates strings (#10789) 2023-05-05 10:56:15 +00:00
Michael Telatynski 02de2f5ba9
Add better error for email invites without identity server (#10739) 2023-05-05 12:04:13 +01:00
Michael Telatynski 43ffd89e58
Fix accessibility issues around the room list and space panel (#10717)
* Fix room sublist group label being read twice in Orca

* Fix room list sublist notification badges always having a tab stop
2023-05-05 10:09:41 +00:00
alunturner c824c4a858
Apply strictNullChecks to src/components/views/rooms/wysiwyg_composer/* (#10653)
* update components folder

* update useInitialContent
2023-05-05 09:11:56 +00:00
Michael Telatynski 99ac9e5029
Ensure tooltip contents is linked via aria to the target element (#10729)
* Ensure tooltip contents is linked via aria to the target element

* Iterate

* Fix tests

* Fix tests

* Update snapshot

* Fix missing aria labels for more tooltips

* Iterate

* Update snapshots
2023-05-05 08:26:11 +00:00
Michael Telatynski 4dd214506b
Move reaction message previews out of labs (#10601)
* Update reaction message previews to match designs

* Delabs reaction message previews

* tsc strict

* Iterate

* Add test

* Iterate
2023-05-05 07:45:14 +00:00
Kerry 1f4d857283
Apply `strictNullChecks` to `src/components/views/settings` (#10724) 2023-05-05 09:13:50 +01:00
Michael Telatynski a4f0b80692
Improve quality of Typescript types (#10742) 2023-05-05 09:11:14 +01:00
Kerry 542bf68c63
Fix: reveal images when image previews are disabled (#10781)
* fix image wrapping when showImage previews is disabled

* strict v2
2023-05-05 03:41:42 +00:00
Kerry 44e0732144
Sort muted rooms to the bottom of their section of the room list (#10592)
* muted-to-the-bottom POC

* split muted rooms in natural algorithm

* add previous event to account data dispatch

* add muted to notification state

* sort muted rooms to the bottom

* only split muted rooms when sorting is RECENT

* remove debugs

* use RoomNotifState better

* add default notifications test util

* test getChangedOverrideRoomPushRules

* remove file

* test roomudpate in roomliststore

* unit test ImportanceAlgorithm

* strict fixes

* test recent x importance with muted rooms

* unit test NaturalAlgorithm

* test naturalalgorithm with muted rooms

* strict fixes

* comments

* add push rules test utility

* strict fixes

* more strict

* tidy comment

* document previousevent on account data dispatch event

* simplify (?) room mute rule utilities, comments

* remove debug
2023-05-05 01:53:26 +00:00
Suguru Hirahara 3ca957b541
Update `_ResizeHandle.pcss` (#10772)
* Nesting: `mx_ResizeHandle`

* Nesting: `> div`

* Run prettier

* Use a custom property

* Remove a redundant declaration: `cursor: row-resize`

The resizer is either vertical or horizontal, and since `cursor: row-resize` is applied by default, it does not need to be repeated here.

* Conform the class names to the naming policy

* Revert "Use a custom property"

This reverts commit 6116939eec7d9e4220b89a638623e5876e143adf.
2023-05-04 15:19:55 +00:00
Suguru Hirahara 0d2af83dbe
Add E2E test: `invite-dialog.spec.ts` (#10693)
* Add `invite-dialog.spec.ts`

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Apply the latest status

The ARIA role of the buttons in 'mx_HeaderButtons' was recently changed from 'tab' to 'button'

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

---------

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2023-05-04 13:09:26 +00:00
Kerry 692d73dfe8
Use semantic headings in user settings Help & About (#10752)
* split SettingsSection out of SettingsTab, replace usage

* correct copyright

* use semantic headings in GeneralRoomSettingsTab

* use SettingsTab and SettingsSubsection in room settings

* fix VoipRoomSettingsTab

* use SettingsSection components in space settings

* settingssubsection text component

* use semantic headings in HelpUserSetttings tab

* use ExternalLink components for external links

* test

* strict

* lint
2023-05-03 22:35:43 +00:00
Kerry 37b7dfe943
use ExternalLink components for external links (#10758)
* use ExternalLink components for external links

* test

* strict
2023-05-03 21:26:26 +00:00
Richard van der Hoff 42e6c9839c
Replace remaining use of `checkDeviceTrust` (#10716)
* Fix remaing use of `checkDeviceTrust`

Followup to #10663

* fix strict type-checking error
2023-05-03 14:02:58 +00:00
Suguru Hirahara af3a0e3d59
Update some class names of AppTile (AppTileMenuBar_iconButton) on the naming policy (#10778) 2023-05-03 12:42:36 +00:00
Suguru Hirahara 62569e209e
Remove unused prop from ResizeHandle - reverse (#10771)
It was added by 928b6d47c8 and soon deprecated by e5d1b3328c
2023-05-03 12:25:33 +00:00
Suguru Hirahara 9b7e7864c9
Merge styles of `_EmailAddresses.pcss` and `_PhoneNumbers.pcss` (#10679)
* Rename: `mx_ExistingPhoneNumber_*` to `mx_PhoneNumber--existing_*`

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Rename: `mx_ExistingEmailAddress_*` to `mx_EmailAddress--existing_*`

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Merge styles for maitainability: `mx_GeneralUserSettingsTab_discovery_existing_*`

`mx_EmailAddress--existing_*` and `mx_PhoneNumber--existing_*` adopt the same declarations, so maintaining them with common selectors should improve the maintainability.

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com

* Rename: `mx_EmailAddress--existing_*` and `mx_PhoneNumber--existing_*` to `mx_GeneralUserSettingsTab_discovery_existing_*`

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Remove empty selectors

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Remove a duplicate selector: `.mx_GeneralUserSettingsTab_discovery--existing`

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Rename the button

The button with the class name 'mx_GeneralUserSettingsTab_discovery_existing_button' is used for various types of action, so 'confirm' seems to be a bit misleading.

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Include: `mx_GeneralUserSettingsTab_discovery_existing_*`

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Run prettier

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* lint

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Review

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

---------

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com
2023-05-03 11:34:32 +00:00
Kerry 5a73d8e1b0
Use semantic headings in space settings (#10751)
* split SettingsSection out of SettingsTab, replace usage

* correct copyright

* use semantic headings in GeneralRoomSettingsTab

* use SettingsTab and SettingsSubsection in room settings

* fix VoipRoomSettingsTab

* use SettingsSection components in space settings
2023-05-03 01:55:55 +00:00
Kerry 4736f0e44c
Use semantic headings for room settings content (#10734)
* split SettingsSection out of SettingsTab, replace usage

* correct copyright

* use semantic headings in GeneralRoomSettingsTab

* use SettingsTab and SettingsSubsection in room settings

* fix VoipRoomSettingsTab
2023-05-02 21:14:36 +00:00
Kerry 58c942be45
split SettingsSection out of SettingsTab, replace usage (#10735)
* split SettingsSection out of SettingsTab, replace usage

* correct copyright

* fix VoipRoomSettingsTab
2023-04-30 22:37:40 +00:00
Michael Weimann 35376996b0
Revert "Implement new toast UI (#10467)" (#10740)
This reverts commit 7632f36624.
2023-04-28 14:56:26 +00:00
Michael Telatynski f819853cad
Fix autocomplete not resetting properly on message send (#10741) 2023-04-28 13:31:02 +00:00
Michael Telatynski 0d1020c66f
Fix start_sso not working with guests disabled (#10720)
* Fix start_sso not working with guests disabled

* Remove confusing prop
2023-04-28 10:16:07 +00:00
David Baker 4c72cceb70
Fix soft crash with Element call widgets (#10684)
There was a race condition somewhere which would cause a soft crash
of the whole app because WidgetPip here gets the currently active
widget given a widget ID and room, but this can race and be null.

Co-authored-by: Janne Mareike Koschinski <janne@kuschku.de>
2023-04-28 08:13:26 +00:00
Michael Telatynski 1281c0746b
Conform more of the codebase to `strictNullChecks` (#10731) 2023-04-28 09:45:36 +01:00
Michael Telatynski 457c1d011a
Add UIFeature.locationSharing to hide location sharing (#10727)
* Add UIFeature.locationSharing to hide location sharing

* Iterate
2023-04-28 07:46:33 +00:00
Michael Weimann d084c34ea2
Send correct receipt when marking a room as read (#10730) 2023-04-28 06:07:25 +00:00
Suguru Hirahara 326e217d3f
Enable Jest and Percy snapshots for `PreferencesUserSettingsTab` (#10701)
Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2023-04-27 18:11:48 +00:00
Michael Telatynski f5d05f3284
Memoize field validation results (#10714)
* Memoize field validation results

* Make validation memoization opt-in
2023-04-27 11:34:02 +00:00
Michael Telatynski a629ce3a53
Use generics to better type TabbedView (#10726) 2023-04-27 12:55:29 +01:00
Michael Telatynski 96bcfc58aa
Fix error about being unable to pass ref to function component (#10707) 2023-04-27 09:46:39 +00:00
Michael Telatynski e1f7b0af2c
Offload some more waveform processing onto a worker (#9223) 2023-04-27 11:02:20 +01:00
alunturner ca25c8f430
Commands for plain text editor (#10567)
* add the handlers for when autocomplete is open plus rough / handling

* hack in using the wysiwyg autocomplete

* switch to using onSelect for the behaviour

* expand comment

* add a handle command function to replace text

* add event firing step

* fix TS errors for RefObject

* extract common functionality to new util

* use util for plain text mode

* use util for rich text mode

* remove unused imports

* make util able to handle either type of keyboard event

* fix TS error for mxClient

* lift all new code into main component prior to extracting to custom hook

* shift logic into custom hook

* rename ref to editorRef for clarity

* remove comment

* try to add cypress test for behaviour

* remove unused imports

* fix various lint/TS errors for CI

* update cypress test

* add test for pressing escape to close autocomplete

* expand cypress tests

* add typing while autocomplete open test

* refactor to single piece of state and update comments

* update comment

* extract functions for testing

* add first tests

* improve tests

* remove console log

* call useSuggestion hook from different location

* update useSuggestion hook tests

* improve cypress tests

* remove unused import

* fix selector in cypress test

* add another set of util tests

* remove .only

* remove .only

* remove import

* improve cypress tests

* remove .only

* add comment

* improve comments

* tidy up tests

* consolidate all cypress tests to one

* add early return

* fix typo, add documentation

* add early return, tidy up comments

* change function expression to function declaration

* add documentation

* fix broken test

* add check to cypress tests

* update types

* update comment

* update comments

* shift ref declaration inside the hook

* remove unused import

* update cypress test and add comments

* update usePlainTextListener comments

* apply suggested changes to useSuggestion

* update tests

---------

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-04-27 07:37:47 +00:00
Michael Telatynski 0a22ed90ef
Consolidate login errors (#10722) 2023-04-27 09:05:31 +01:00
Kerry 223892bf0e
Bail out of `RoomSettingsDialog` when room is not found (#10662)
* hack to fix console noise from unfaked timers and clearAllModals

* remove old debug logging in AsyncWrapper

* pass room to room settings tabs

* add errorboundary for roomsettingsdialog

* apply strictnullchecks to tabs/room

* dedupe code to set toom in roomsettingdialog

* add unit tests

* test SecurityRoomSettingsTab

* remove snapshot

* strict fixes

* more tests

* 2% more test coverage

* remove roomName from RoomSettingsDialogs state
2023-04-27 01:20:02 +00:00
Michael Telatynski 2b3e0b47ba
Fix all rooms search generating permalinks to wrong room id (#10625)
* Fix all rooms search generating permalinks to wrong room id

* Iterate

* Add comment

* Iterate

* Add coverage

* Iterate

* Add comment

* Restore src/utils/permalinks/Permalinks.ts

* Update src/components/structures/RoomSearchView.tsx

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2023-04-26 17:35:20 +00:00
Florian Duros 5328f6e5fe
Element-R: Populate device list for right-panel (#10671)
* Use `getUserDeviceInfo` instead of `downloadKeys` and `getStoredDevicesForUser`

* Use new `getUserDeviceInfo` api in `UserInfo.tsx` and `UserInfo-test.tsx`

* Fix missing fields

* Use `getUserDeviceInfo` instead of `downloadKeys`

* Move `ManualDeviceKeyVerificationDialog.tsx` from class to functional component and add tests

* Fix strict errors

* Update snapshot

* Add snapshot test to `UserInfo-test.tsx`

* Add test for <BasicUserInfo />

* Remove useless TODO comment

* Add test for ambiguous device

* Rework `<BasicUserInfo />` test
2023-04-26 10:23:32 +00:00
Michael Telatynski 6166dbb661
Make existing and new issue URLs configurable (#10710)
* Make existing and new issue URLs configurable

* Apply a deep merge over sdk config to allow sane nested structures

* Defaultize

* Fix types

* Iterate

* Add FeedbackDialog snapshot test

* Add SdkConfig snapshot tests

* Iterate

* Fix tests

* Iterate types

* Fix test
2023-04-26 09:36:00 +00:00
Michael Telatynski e4610e4672
Posthog properly handle Analytics ID changing from under us (#10702)
* Posthog properly handle Analytics ID changing from under us

* Update tests
2023-04-26 08:03:35 +00:00
Michael Weimann 857e22f943
Fix condition of logging possible room list corruption (#10685)
* Revert condition of logging possible room list corruption

* Fix loop condition
2023-04-26 07:57:33 +00:00
Michael Telatynski 8783021e53
Fix Clock being read as an absolute time rather than duration (#10706)
* Fix Clock being read as an absolute time rather than duration

* Round durations and update snapshots
2023-04-25 17:10:46 +01:00
Michael Telatynski a1a087f755
Fix usages of ARIA tabpanel (#10628)
* RovingTabIndex handle looping around start/end

* Make TabbedView expose aria tabpanel/tablist/tab roles

* Fix right panel being wrongly specified as aria tabs

Not all right panels map to the top right header buttons so we cannot describe it as a tabpanel relation

* tsc strict

* Update snapshots

* Fix ARIA AXE violation

* Update tests
2023-04-25 09:31:54 +01:00
Michael Telatynski 961b843662
Merge pull request from GHSA-xv83-x443-7rmw
* Escape HTML for plaintext search results

* Add tests
2023-04-25 09:30:32 +01:00
Michael Telatynski 619a9e8542
Conform more of the codebase with `strictNullChecks` (#10703) 2023-04-25 09:28:48 +01:00
Florian Duros db40479910
Element-R: Starting a DMs with a user (#10673)
* Use `cli.getUserDeviceInfo` instead of `cli.downloadKeys` to create a room

* Use `client.getCrypto().getUserDeviceInfo` instead of `client.getUserDeviceInfo`

* Update `createRoom-test.ts` to use `getUserDeviceInfo`

* Remove duplicate  field
2023-04-24 14:19:08 +00:00
Richard van der Hoff d7bb8043ea
Replace uses of `checkDeviceTrust` with `getDeviceVerificationStatus` (#10663)
matrix-org/matrix-js-sdk#3287 and matrix-org/matrix-js-sdk#3303 added a new API called getDeviceVerificationStatus. Let's use it.
2023-04-24 14:19:46 +01:00
Andy Balaam aa8c0f5cc7
Honour feature toggles in guest mode (#10651)
* Honour feature toggles in guest mode

* Suppress TS warning about returning null MatrixClient

* Revert "Suppress TS warning about returning null MatrixClient"

Don't ts-ignore this - we will eventually fix it via the strict work.

This reverts commit 0c657e6afd4c69d07c39bc2783184f36feaf940f.
2023-04-24 10:02:17 +00:00
Tulir Asokan 2486e7a90a
Fix default content in devtools event sender (#10699)
It regressed from `{\n\n}` to an empty string in #10391

Signed-off-by: Tulir Asokan <tulir@maunium.net>
2023-04-24 08:24:28 +00:00
Eric Eastwood 16ab5e9db0
Properly translate errors in `ChangePassword.tsx` so they show up translated to the user but not in our logs (#10615)
* Properly translate errors in `ChangePassword.tsx`

So they show up translated to the user but not in our logs.

Part of https://github.com/vector-im/element-web/issues/9597 and also fixes it
since it's the last piece mentioned (there could be other cases we log translated strings)

Fix https://github.com/vector-im/element-web/issues/9597

* Make more useful

* Update i18n strings

* No need to checkPassword since field validation already covers this

See https://github.com/matrix-org/matrix-react-sdk/pull/10615#discussion_r1167363765

Both of the error cases are covered by the logic in `verifyFieldsBeforeSubmit()` just above
and there is no way `checkPassword` would ever throw one of these errors since they are
already valid by the time it reaches here.

* Update i18n strings

* Revert "No need to checkPassword since field validation already covers this"

This reverts commit 7786dd151028e6fbf04d1a38a9c2cd47a3fbfc4b.

* Update i18n strings

* Add todo context to note that we can remove this logic in the future

* Ensure is an error

* Remove else

See https://github.com/matrix-org/matrix-react-sdk/pull/10615#discussion_r1173477053
2023-04-24 09:41:09 +01:00
Michael Telatynski 96c8267f71
Improve types to match reality (#10691) 2023-04-24 07:29:01 +00:00
Robin 7c4d0ceddc
Fix a crash when a call ends while you're in it (#10681) 2023-04-21 13:54:27 +00:00
Suguru Hirahara 64997e6f69
Remove obsolete `mx_InviteDialog_transferButton` class (#10687)
The class has been introduced by 2cc6bcec29be908ac45bf181272e2542aadd73f9 ("Much theming & visual of transfer window dial pad"), and removed by c829cb948031f83d1422867ff54af9ebc2047ba9 ("Use flexbox to layout buttons") from _InviteDialog.scss on the same PR. The class has not used anywhere else since then.

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2023-04-21 13:24:40 +00:00
Michael Telatynski fdfe800b2c
Fix lack of screen reader indication when triggering auto complete (#10664) 2023-04-21 09:49:05 +00:00
Michael Telatynski be5928cb64
Conform more of the codebase to strictNullChecks (#10672)
* Conform more of the codebase to `strictNullChecks`

* Iterate

* Iterate

* Iterate

* Iterate

* Conform more of the codebase to `strictNullChecks`

* Iterate

* Update record key
2023-04-21 11:50:42 +01:00
Michael Telatynski 792a39a39b
ARIA Accessibility improvements (#10675)
* Fix confusing tab indexes in EventTilePreview

* Stop using headings inside buttons

* Prefer labelledby and describedby over duplicated aria-labels

* Improve semantics of tables used in settings

* Fix types

* Update tests

* Fix timestamps
2023-04-21 09:48:48 +00:00
Michael Telatynski 782060a26e
ARIA Accessibility improvements (#10674)
* Add missing aria-expanded attributes

* Improve autoComplete for phone numbers & email addresses

* Fix room summary card heading order

* Fix missing label on timeline search field

* Use appropriate semantic elements for dropdown listbox

* Use semantic list elements in keyboard settings tab

* Use semantic list elements in spotlight

* Fix types and i18n

* Improve types

* Update tests

* Add snapshot test
2023-04-20 17:13:30 +00:00
Michael Telatynski 2da52372d4
Add arrow key controls to emoji and reaction pickers (#10637)
* Add arrow key controls to emoji and reaction pickers

* Iterate types

* Switch to using aria-activedescendant

* Add tests

* Fix tests

* Iterate

* Update test

* Tweak header keyboard navigation behaviour

* Also handle scrolling on left/right arrow keys

* Iterate
2023-04-20 14:56:21 +00:00
Michael Telatynski 0d9fa0515d
Fix typing tile duplicating users (#10678) 2023-04-20 14:44:54 +00:00
Suguru Hirahara 467c52a2ae
Add E2E test - `general-user-settings-tab.spec.ts` (#10658)
* Add E2E test: `general-user-settings-tab.spec.ts`

Initial implementation

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* lint

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Check an input area for a new email address too

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

---------

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2023-04-20 13:18:19 +00:00
Michael Telatynski 483b53c148
Translate credits in help about section (#10676) 2023-04-20 12:18:13 +00:00
Michael Telatynski 1efa82917a
Fix wrong room topic tooltip position (#10667)
* Fix wrong room topic tooltip position

* Update snapshots

* Fix tests
2023-04-20 08:25:53 +00:00
Michael Telatynski 93b4ee654b
Conform more of the codebase to `strictNullChecks` (#10666)
* Conform more of the codebase to `strictNullChecks`

* Iterate

* Iterate

* Iterate

* Iterate
2023-04-20 09:49:10 +01:00
Michael Weimann 83e6a6057d
Add developer tools option to room list context menu (#10635)
* Make developer tools more accessible

* Extend tests

* Use settings hook

* Trigger CI
2023-04-19 11:34:27 +00:00
Kerry 957945b356
remove old debug logging in AsyncWrapper (#10661) 2023-04-19 07:45:27 +00:00
Suguru Hirahara 869856df2d
Remove obsolete class name and declarations on `General` user settings tab (#10659)
* Remove an obsolete class name: `mx_EmailAddresses_new`

The class name was added by aa7afe819f for an initial implementation and became obsolete thanks to 1090b7d912.

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Remove obsolete declarations: `mx_ExistingPhoneNumber_delete`

The declarations have been obsolete since 11f2b4320d.

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Remove obsolete declarations: `mx_ExistingEmailAddress_delete`

The declarations have also been deprecated by 11f2b4320d.

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

---------

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2023-04-18 20:59:18 +00:00
Michael Telatynski 0db40e327c
Fix create subspace dialog not working (#10652) 2023-04-18 16:00:55 +00:00
Michael Weimann 7632f36624
Implement new toast UI (#10467)
* Implement new toast UI

* Use PCSS vars and Caption component

* Add GenericToast-test

* Tweak call toast

* Fix code style
2023-04-18 11:38:41 +00:00
Element Translate Bot ac2855789f
Translations update from Weblate (#10636)
* 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/

* Translated using Weblate (German)

Currently translated at 99.9% (3765 of 3766 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (3766 of 3766 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/

* Translated using Weblate (Albanian)

Currently translated at 99.6% (3751 of 3766 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sq/

* 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/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (3766 of 3766 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/

* Translated using Weblate (Indonesian)

Currently translated at 100.0% (3766 of 3766 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/id/

* Translated using Weblate (Czech)

Currently translated at 100.0% (3766 of 3766 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/

* Translated using Weblate (Estonian)

Currently translated at 100.0% (3766 of 3766 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/

* Translated using Weblate (French)

Currently translated at 100.0% (3766 of 3766 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (3766 of 3766 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/

* 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/

* 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/

* Translated using Weblate (German)

Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/

* Translated using Weblate (Hungarian)

Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/

* 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/

* Translated using Weblate (Czech)

Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/

* Translated using Weblate (French)

Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/

* Translated using Weblate (Albanian)

Currently translated at 99.6% (3748 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sq/

* Translated using Weblate (Estonian)

Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 99.9% (3761 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 99.9% (3761 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 99.9% (3761 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 99.9% (3761 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/

* Translated using Weblate (Italian)

Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/

* Translated using Weblate (Indonesian)

Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/id/

* Translated using Weblate (Hebrew)

Currently translated at 72.0% (2709 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/he/

* Translated using Weblate (Hungarian)

Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/

* Translated using Weblate (Swedish)

Currently translated at 98.4% (3704 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sv/

* Translated using Weblate (Hebrew)

Currently translated at 72.0% (2712 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/he/

* Translated using Weblate (Swedish)

Currently translated at 98.6% (3712 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sv/

* Translated using Weblate (Swedish)

Currently translated at 98.8% (3720 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sv/

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (3763 of 3763 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/

* Translated using Weblate (Czech)

Currently translated at 100.0% (3763 of 3763 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/

* Translated using Weblate (German)

Currently translated at 99.9% (3763 of 3765 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/

* Translated using Weblate (German)

Currently translated at 100.0% (3765 of 3765 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (3765 of 3765 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (3765 of 3765 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/

* Translated using Weblate (Albanian)

Currently translated at 99.6% (3750 of 3765 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sq/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (3765 of 3765 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/

* Translated using Weblate (French)

Currently translated at 100.0% (3765 of 3765 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/

* Translated using Weblate (Indonesian)

Currently translated at 100.0% (3765 of 3765 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/id/

* Translated using Weblate (Hungarian)

Currently translated at 99.9% (3763 of 3765 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/

* Translated using Weblate (Italian)

Currently translated at 100.0% (3765 of 3765 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/

* Translated using Weblate (Czech)

Currently translated at 100.0% (3765 of 3765 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/

* Translated using Weblate (Norwegian Nynorsk)

Currently translated at 27.4% (1032 of 3765 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/nn/

* Translated using Weblate (Estonian)

Currently translated at 100.0% (3765 of 3765 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/

* 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/

* Translated using Weblate (Italian)

Currently translated at 100.0% (3765 of 3765 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/

* Translated using Weblate (German)

Currently translated at 100.0% (3765 of 3765 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (3765 of 3765 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (3768 of 3768 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/

* Translated using Weblate (Italian)

Currently translated at 99.9% (3767 of 3768 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/

* Translated using Weblate (German)

Currently translated at 100.0% (3768 of 3768 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/

* Translated using Weblate (French)

Currently translated at 100.0% (3768 of 3768 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/

* Translated using Weblate (Hungarian)

Currently translated at 100.0% (3768 of 3768 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/

* Translated using Weblate (Italian)

Currently translated at 100.0% (3768 of 3768 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/

* Translated using Weblate (Indonesian)

Currently translated at 100.0% (3768 of 3768 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/id/

* Translated using Weblate (Czech)

Currently translated at 100.0% (3768 of 3768 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (3768 of 3768 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/

* Translated using Weblate (Estonian)

Currently translated at 100.0% (3768 of 3768 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (3768 of 3768 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (3769 of 3769 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/

* Translated using Weblate (Czech)

Currently translated at 100.0% (3769 of 3769 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/

* Translated using Weblate (German)

Currently translated at 100.0% (3769 of 3769 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (3769 of 3769 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/

* Translated using Weblate (Estonian)

Currently translated at 100.0% (3769 of 3769 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/

* Translated using Weblate (Italian)

Currently translated at 100.0% (3769 of 3769 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (3769 of 3769 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/

* Translated using Weblate (Estonian)

Currently translated at 100.0% (3771 of 3771 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/

* Translated using Weblate (Chinese (Traditional))

Currently translated at 100.0% (3771 of 3771 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/

* Translated using Weblate (Ukrainian)

Currently translated at 100.0% (3771 of 3771 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/

* Translated using Weblate (Slovak)

Currently translated at 100.0% (3771 of 3771 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/

* Translated using Weblate (French)

Currently translated at 100.0% (3771 of 3771 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/

---------

Co-authored-by: Weblate <translate@riot.im>
Co-authored-by: Vri <element@vrifox.cc>
Co-authored-by: Jozef Gaal <preklady@mayday.sk>
Co-authored-by: Besnik Bleta <besnik@programeshqip.org>
Co-authored-by: Peter Chen <petercpg@gmail.com>
Co-authored-by: Linerly <linerly@protonmail.com>
Co-authored-by: waclaw66 <waclaw66@seznam.cz>
Co-authored-by: Priit Jõerüüt <riot@joeruut.com>
Co-authored-by: Glandos <bugs-github@antipoul.fr>
Co-authored-by: Ihor Hordiichuk <igor_ck@outlook.com>
Co-authored-by: Szimszon <github@oregpreshaz.eu>
Co-authored-by: Jeff Huang <s8321414@gmail.com>
Co-authored-by: random <dictionary@tutamail.com>
Co-authored-by: SPiRiT <such.a.lost.spirit@gmail.com>
Co-authored-by: Balázs Meskó <meskobalazs@gmail.com>
Co-authored-by: LinAGKar <linus.kardell@gmail.com>
Co-authored-by: Bjørn I.Svindseth <bjorni.svindseth@yahoo.com>
2023-04-18 10:06:45 +00:00
Michael Telatynski 82a51e9674
Pick sensible default option for phone country dropdown (#10627)
* Pick sensible default option for phone country dropdown

* Add tests

* Add tests
2023-04-18 08:23:37 +00:00
Michael Telatynski 6bf1815608
Add missing rel noreferrer noopener attributes (#10629) 2023-04-17 18:43:25 +00:00
Michael Telatynski 1a0e5c1805
Fix multiple accessibility defects identified by AXE (#10606)
* Mark effects overlay canvas as aria hidden

* Ensure date separators aren't seen as focusable aria separators

* Fix

* Fix font slider not having aria label

* Add missing aria labels

* Fix settings flags setting aria-checked={null}

* Update snapshots
2023-04-17 16:09:45 +00:00
Michael Telatynski 270a26d89a
Fix view source from edit history dialog always showing latest event (#10626) 2023-04-17 16:09:17 +00:00
Michael Telatynski 568ec77208
Make SonarCloud happier about our code quality (#10630) 2023-04-17 12:57:19 +00:00
kenwuuu dc4bb237d4
Replace hardcoded strings with MsgType constants (#10604)
* replace hardcoded strings with MsgType constants

* fix import and revert comments

Signed-off-by: Ken Wu kenqiwu@gmail.com

* fix import

Signed-off-by: Ken Wu kenqiwu@gmail.com

---------

Signed-off-by: Ken Wu kenqiwu@gmail.com
2023-04-17 09:37:29 +00:00
Timothy Amello 1d9df7ec51
Apply strictNullChecks to Markdown.ts (#10623)
Co-authored-by: Kerry <kerrya@element.io>
2023-04-17 07:41:51 +00:00
Michael Telatynski 56e4ae41f8
Conform more of the codebase to strictNullChecks (#10607)
* Conform more of the codebase to `strictNullChecks`

* Conform more of the codebase to `strictNullChecks`

* Fix types

* Conform more of the codebase to `strictNullChecks`

* Conform more of the codebase to `strictNullChecks`
2023-04-17 09:25:00 +01:00
Suguru Hirahara 8a4a584ba0
Make test ID compatible with findByTestId() of Cypress Testing Library (#10617)
'data-test-id' is not discoverable with findByTestId() of Cypress Testing Library.

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2023-04-17 06:10:11 +00:00
Michael Telatynski daad630827
Conform more of the codebase to `strictNullChecks` (#10602)
* Conform more of the codebase to `strictNullChecks`

* Conform more of the codebase to `strictNullChecks`

* Fix types
2023-04-17 08:31:58 +01:00
Rashmit Pankhania 7751f9c622
#21451 Fix WebGL disabled error message (#10589)
* #21451 Fix WebGl disabled error message

* #21451 Fix WebGl disabled error message

Signed-off-by: Rashmit Pankhania <rashmitpankhania@gmail.com>
Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net>

* Fix message

Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net>

* Fix ordering of cases in LocationShareErrors.ts

Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net>

* Fix linting LocationPicker.tsx

Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net>

* Fix eslint

Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net>

* Fix file encoding for i18n CI issue

Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net>

* Fix ts strict CI issue

Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net>

---------

Signed-off-by: Rashmit Pankhania <rashmitpankhania@gmail.com>
Signed-off-by: Rashmit Pankhania <raspankh@publicisgroupe.net>
Co-authored-by: Rashmit Pankhania <raspankh@publicisgroupe.net>
Co-authored-by: Kerry <kerrya@element.io>
2023-04-17 04:25:04 +00:00
Michael Telatynski 439759a1da
Relate field validation tooltip via aria-describedby (#10522)
* Relate field validation tooltip via aria-describedby

* Iterate
2023-04-14 14:15:26 +00:00
Eric Eastwood c1e7905ddc
Properly translate errors in `AddThreepid.ts` (#10432)
* Properly translate errors in AddThreepid.ts

Part of https://github.com/vector-im/element-web/issues/9597

* Use translated message

* Avoid returning undefined ever

* More usage

* Introduce UserFriendlyError

* Use UserFriendlyError

* Add more usage instead of normal error

* Use types and translatedMessage

* Fix lints

* Update i18n although it's wrong

* Use unknown for easier creation from try/catch

* Use types

* Use error types

* Use types

* Update i18n strings

* Remove generic re-label of HTTPError

See https://github.com/matrix-org/matrix-react-sdk/pull/10432#discussion_r1156468143

The HTTPError already has a good label and it isn't even translated if we re-label it here in this way generically

Probably best to just remove in favor of thinking about a translations in general from the `matrix-js-sdk`, see https://github.com/matrix-org/matrix-js-sdk/issues/1309

* Make error message extraction generic

* Update i18n strings

* Add tests for email addresses

* More consistent error logging to actually see error in logs

* Consistent error handling

* Any is okay because we have a fallback

* Check error type

* Use dedicated mockResolvedValue function

See https://github.com/matrix-org/matrix-react-sdk/pull/10432#discussion_r1163344034
2023-04-14 15:40:19 +01:00
Julien DAUPHANT 075c8c3d33
Fix bug on Avatar.ts for custom theme avatar background color (#10598) 2023-04-14 13:38:54 +00:00
Richard van der Hoff 6b451afc50
Remove dependency on `org.matrix.e2e_cross_signing` unstable feature (#10593)
* Remove dependency on `org.matrix.e2e_cross_signing` unstable feature

Currently, we have some code that relies on the server declaring support for an
`unstable_feature` called `org.matrix.e2e_cross_signing`. There is nothing in
the spec that requires this, so this would make us incompatible with some
server implementations.

The features in question were added in spec v1.1, so we can test for that
instead.

* fix unit test
2023-04-14 10:14:05 +00:00
Richard van der Hoff 70b87f8bde
Simplify `isDeviceVerified` definitions (#10594)
* Simplify `isDeviceVerified` definitions

Currently, we have two similar but different definitions of `isDeviceVerified`,
and they both do a lot of wrangling that relies on js-sdk internals. We can
simplify it a lot by just calling `MatrixClientPeg.checkDeviceTrust`.

* fix tests

* more test fixes
2023-04-14 09:46:37 +00:00
alunturner e4ebcf5731
Handle more completion types in rte autocomplete (#10560)
* handle at-room

* remove console log

* update and add tests

* tidy up

* refactor to switch statement

* fix TS error

* expand tests

* consolidate similar if/else if blocks
2023-04-14 09:09:38 +00:00
Michael Telatynski 1ae0662872
Update setting description to match reality (#10600) 2023-04-14 08:58:08 +00:00
Michael Telatynski 605ef084ec
Conform more of the codebase to `strictNullChecks` (#10573)
* Conform more of the codebase to `strictNullChecks`

* Iterate
2023-04-13 08:52:57 +01:00
Michael Telatynski b4d7f6b592
Fix no identity server in help & about settings (#10563) 2023-04-13 07:25:51 +00:00
Suguru Hirahara 747afec27e
Use `AccessibleButton` for "Accept" on AuthPage (#10508)
* Use AccessibleButton for "Accept" on AuthPage

- Use AccessibleButton
- Remove mx_InteractiveAuthEntryComponents_termsSubmit:disabled as disabled state is handled by AccessibleButton

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Empty commit

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

---------

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
2023-04-13 01:29:09 +00:00
Kerry 6280395928
Fix: Images no longer reserve their space in the timeline correctly (#10571)
* test case

* fix + lint

* refix strictNullChecks issue

* add comment about max image size

* tweak

* use safer magic number
2023-04-13 01:22:16 +00:00
Andy Balaam c496985ff3
Show a tile for an unloaded predecessor room if it has via_servers (#10483)
* Improve typing in constructor of RoomPermalinkCreator

* Provide via servers if present when navigating to predecessor room from Advanced Room Settings

* Show an error tile when the predecessor room is not found

* Test for MatrixToPermalinkConstructor.forRoom

* Test for MatrixToPermalinkConstructor.forEvent

* Display a tile for predecessor event if it contains via servers

* Fix missing case where event id is provided as well as via servers

* Refactor RoomPredecessor tests

* Return lost filterConsole to its home

* Comments for IState in AdvancedRoomSettingsTab

* Explain why we might render a tile even without prevRoom

* Guess the old room's via servers if they are not provided

* Fix TypeScript errors

* Adjust regular expression (hopefully) to avoid potential catastrophic backtracking

* Another attempt at avoiding super-liner regex performance

* Tests for guessServerNameFromRoomId and better implementation

* Further attempt to prevent backtracking

---------

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-04-12 15:26:45 +00:00
Michael Telatynski 075cb9e622
Exclude message timestamps from aria live region (#10584)
* Exclude message timestamps from aria live region

* Update snapshot
2023-04-12 14:12:45 +00:00
Michael Telatynski e5b1b7b632
Make composer format bar an aria toolbar (#10583)
* Make composer format bar an aria toolbar

* Iterate

* Iterate

* Update snapshot
2023-04-12 13:58:38 +00:00
Michael Weimann 7cd86231b4
Fix read receipts falling from sky (#10576) 2023-04-12 11:50:48 +00:00
Michael Telatynski d2066ba5f5
Improve accessibility of font slider (#10473)
* Clamp font size when disabling "Use custom size"

* Switch Slider to use a semantic input range element

* Iterate

* delint

* delint

* snapshot

* Iterate

* Iterate

* Fix step size

* Add focus outline to slider

* Derp
2023-04-12 10:57:31 +00:00
Neeraj Vageele ce0bd00c5b
fix file size display from kB to KB (#10561)
* fix file size display from kB to KB

* add a wrapper function for filesize

---------

Co-authored-by: Neeraj <neerajv@thirdrocktechkno.com>
2023-04-11 14:48:41 +01:00
Hugh Nimmo-Smith 692c07ef0a
Use Capabilities type from js-sdk (#10535) 2023-04-11 09:46:11 +00:00
alunturner 4d5744008e
Handle /me in rte (#10558)
* add /me handling

* use typeguards to avoid fighting TS

* improve clarity and use of typeguards

* add createMessageContent tests

* remove completed TODO

* improve comments

* remove duplication and renaming of argument
2023-04-11 08:23:03 +00:00
alunturner 96c62ea03d
Fix avatar text issue in rte (#10559)
* replace - with zwsp

* improve comments

* fix broken tests

* fix typo
2023-04-11 08:13:48 +00:00
Michael Weimann 29780704f1
Add unread fallback logging (#10509) 2023-04-11 07:41:59 +00:00
Neeraj Vageele c8585be2f8
fix resize to only work with left mouse click (#10546)
Co-authored-by: Neeraj <neerajv@thirdrocktechkno.com>
Co-authored-by: Kerry <kerrya@element.io>
2023-04-11 06:13:11 +00:00
Neeraj Vageele 99a375e354
bind html with switch for manage extension setting (#10553)
option

Co-authored-by: Neeraj <neerajv@thirdrocktechkno.com>
2023-04-11 05:13:52 +00:00
alunturner 3fa6f8cbf0
Handle command completions in RTE (#10521)
* pass handleCommand prop down and use it in WysiwygAutocomplete

* allow a command to generate a query from buildQuery

* port command functionality into the sendMessage util

* tidy up comments

* remove use of shouldSend and update comments

* remove console log

* make logic more explicit and amend comment

* uncomment replyToEvent block

* update util test

* remove commented out test

* use local text over import from current composer

* expand tests

* expand tests

* handle the FocusAComposer action for the wysiwyg composer

* remove TODO comment

* remove TODO

* test for action dispatch

* fix failing tests

* tidy up tests

* fix TS error and improve typing

* fix TS error

* amend return types for sendMessage, editMessage

* fix null content TS error

* fix another null content TS error

* use as to correct final TS error

* remove undefined argument

* try to fix TS errors for editMessage function usage

* tidy up

* add TODO

* improve comments

* update comment
2023-04-10 12:47:42 +00:00
Michael Weimann 818e8292cb
Fix send two join requests when joining a room from spotlight search (#10534)
* Fix send two join requests when joining a room from spotlight search

* Trigger CI

---------

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-04-06 14:02:18 +00:00
renovate[bot] 0ea2ff85d0
Update dependency typescript to v5 (#10532)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-04-06 13:17:50 +01:00
renovate[bot] 6c39aa29e2
Update typescript-eslint monorepo to v5.57.0 (#10530)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-04-06 12:07:58 +01:00
Michael Telatynski 55d3548330
Conform more of the codebase to `strictNullChecks` (#10518
* Conform more of the codebase to `strictNullChecks`

* Iterate

* Fix tests
2023-04-06 11:10:14 +01:00
Suguru Hirahara 374a23edb5
Add E2E test of audio player (#10441)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-04-06 08:45:55 +00:00
alunturner e03eac12c3
Add room and user avatars to rte (#10497)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-04-06 08:43:49 +00:00
Hugh Nimmo-Smith 5c0e5eb0fb
Support for MSC3882 revision 1 (#10443)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-04-06 08:06:12 +00:00
Michael Telatynski 09eefe14ea
Remove feedback buttons from onboarding, search, and spaces (#10506) 2023-04-05 12:17:25 +01:00
Michael Weimann df89d2ce28
Check profiles before starting a DM (#10472) 2023-04-05 13:13:51 +02:00
Michael Telatynski e5a314617a
Conform more of the codebase to strictNullChecks (#10505
* Conform more of the codebase to `strictNullChecks`

* Iterate

* Conform more of the codebase to `strictNullChecks`

* Iterate

* Iterate

* Iterate

* Iterate
2023-04-05 09:02:40 +01:00
Kerry 2434749f65
Highlight event when any version triggered a highlight (#10502)
* check previous events pushactions when deciding to highlight

* test event highlight

* strict fix

* highlight edited text to red
2023-04-05 02:46:17 +00:00
Janne Mareike Koschinski 52eec283b3
Quick settings: Change the copy / labels on the options (#10427)
* Quick settings: Change the copy / labels on the options
* Update i18n
2023-04-04 21:00:57 +02:00
alunturner 7a250f41ac
Update rte autocomplete styling (#10503)
* amend className to reflect usage
* move new class into file used by Send/Edit composers
* add border styling to autocomplete
2023-04-04 14:52:57 +01:00
Michael Telatynski b77b2df29b
Improve context types (#10510) 2023-04-04 14:01:04 +01:00
Michael Telatynski bc60a9b594
Conform more of the codebase to `strictNullChecks` (#10504
* Conform more of the codebase to `strictNullChecks`

* Iterate
2023-04-04 11:41:46 +01:00
Weblate 7322cff0d7 Merge branch 'origin/develop' into Weblate. 2023-04-04 07:46:41 +00:00
Peter Chen 2b3eb9e132 Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3766 of 3766 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-04-04 07:46:41 +00:00
LinAGKar 6a0ec8cebd Translated using Weblate (Swedish)
Currently translated at 98.5% (3710 of 3766 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sv/
2023-04-04 07:46:38 +00:00
Eric Eastwood 2ebec3a3c7
Remove orphaned GenericError class (#10500)
Originally introduced in
https://github.com/matrix-org/matrix-react-sdk/pull/8329

All usages were removed in
https://github.com/matrix-org/matrix-react-sdk/pull/9605

This error also has problems with showing tranlsated versions in the logs.
Part of https://github.com/vector-im/element-web/issues/9597

We should be using the new `UserFriendlyError` for this kind of thing anyway.
Introduced in https://github.com/matrix-org/matrix-react-sdk/pull/10440
2023-04-04 02:46:27 -05:00
Weblate d76cda3095 Merge branch 'origin/develop' into Weblate. 2023-04-03 09:28:25 +00:00
Michael Weimann 56423d4d53
Restore createRoom.canEncryptToAllUsers (#10491) 2023-04-03 11:28:17 +02:00
Weblate b49122e8fb Merge branch 'origin/develop' into Weblate. 2023-04-03 09:09:39 +00:00
Shivam Mahajan f933806b63
Added auto focus to Github URL on opening of debug logs modal (#10479)
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2023-04-03 09:09:32 +00:00
Weblate 9b1ea80da6 Merge branch 'origin/develop' into Weblate. 2023-04-03 08:27:02 +00:00
Kerry 81a4498a8f
Apply `strictNullChecks` to `src/utils/*!exportUtils` (#10455
* Apply `strictNullChecks` to `src/utils/exportUtils`

* strict fix

* fix strictNullChecks issues in some utils

* fix error message

* test coverage

* lint

* more strictNullChecks

* small optimisation for getUniqueRoomsWithIndividuals

* tidy

* test coverage
2023-04-03 09:26:55 +01:00
Weblate 4fa3f52d35 Merge branch 'origin/develop' into Weblate. 2023-04-02 21:32:18 +00:00
Kerry 6f1a3af895
Properly generate mentions when editing a reply with MSC3952 (#10486)
* remove redundant feature_intentional_mentions settings check

* tests

* pass replytoevent to attachmmentions in editmessagecomposer

* lint

* strict fix
2023-04-02 21:32:12 +00:00
Weblate a374758b6b Merge branch 'origin/develop' into Weblate. 2023-04-02 21:20:03 +00:00
maheichyk d3da171765
Show room create icon if "UIComponent.roomCreation" is enabled (#10364)
* Show room create button in RoomSublist if "UIComponent.roomCreation" is enabled

Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>

* Revert "Show room create button in RoomSublist if "UIComponent.roomCreation" is enabled"

This reverts commit a332a0b02a6c3253ea7ac606211c41a09c409de5.

* Use UIComponent.ExploreRooms to display menu item "Explore public rooms" ("Explore rooms" in case of space room) in context menu of "Rooms" section of RoomList component. The context menu will be available if one of UIComponent.ExploreRooms or UIComponent.CreateRooms is enabled.

Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>

* "Explore rooms" of space room should not be controlled by UIComponent.ExploreRooms.

Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>

---------

Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
Co-authored-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
2023-04-03 09:19:56 +12:00
Glandos d342b47af2 Translated using Weblate (French)
Currently translated at 100.0% (3766 of 3766 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/
2023-04-02 12:33:53 +00:00
Weblate 39b3ab42b7 Merge branch 'origin/develop' into Weblate. 2023-03-31 13:15:17 +00:00
Priit Jõerüüt 4133d56c4a Translated using Weblate (Estonian)
Currently translated at 100.0% (3766 of 3766 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/
2023-03-31 13:15:17 +00:00
Jozef Gaal a53f7dac3f Translated using Weblate (Slovak)
Currently translated at 100.0% (3766 of 3766 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/
2023-03-31 13:15:15 +00:00
waclaw66 0b99450168 Translated using Weblate (Czech)
Currently translated at 100.0% (3766 of 3766 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/
2023-03-31 13:15:13 +00:00
random d96b93a148 Translated using Weblate (Italian)
Currently translated at 100.0% (3766 of 3766 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/
2023-03-31 13:15:10 +00:00
Olivier D 39e789a04e Translated using Weblate (French)
Currently translated at 99.8% (3762 of 3766 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/
2023-03-31 13:15:08 +00:00
Vri 72cbb3bc4a Translated using Weblate (German)
Currently translated at 100.0% (3766 of 3766 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
2023-03-31 13:15:06 +00:00
alunturner 6f791d28c8
Add mentions as links to rte (#10463)
* adds autocomplete behaviour for mentions in rich text editor
* allows adding mentions as links
* adds tests
2023-03-31 14:14:55 +01:00
Weblate 211c4ec108 Merge branch 'origin/develop' into Weblate. 2023-03-31 09:35:09 +00:00
Michael Telatynski 212977c4ac
Apply `strictNullChecks` to `src/contexts/*` (#10490) 2023-03-31 10:35:02 +01:00
Ihor Hordiichuk b0bb865d1c Translated using Weblate (Ukrainian)
Currently translated at 100.0% (3763 of 3763 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/
2023-03-31 09:16:03 +00:00
Weblate d93469f143 Merge branch 'origin/develop' into Weblate. 2023-03-31 09:08:55 +00:00
Priit Jõerüüt 48b93f545b Translated using Weblate (Estonian)
Currently translated at 100.0% (3763 of 3763 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/
2023-03-31 09:08:54 +00:00
Michael Telatynski 404c412bcb
Handle IDB `closed` event by showing modal with prompt to reload app (#10395
* Handle IDB `closed` event by showing modal with prompt to reload app

* Iterate

* Skip the modal for guests, e.g. during registration

* Iterate

* Add tests
2023-03-31 10:08:45 +01:00
Weblate 0333b6cc77 Merge branch 'origin/develop' into Weblate. 2023-03-31 08:26:21 +00:00
Michael Telatynski f152613f83
Apply `strictNullChecks` to `src/components/auth/*` (#10484
* Apply `strictNullChecks` to `src/components/auth/*`

* fix

* strict types
2023-03-31 09:26:15 +01:00
Weblate 15f94d7bfb Merge branch 'origin/develop' into Weblate. 2023-03-31 08:20:27 +00:00
waclaw66 f033c0c62f Translated using Weblate (Czech)
Currently translated at 100.0% (3763 of 3763 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/
2023-03-31 08:20:27 +00:00
Vri 5f7143b42f Translated using Weblate (German)
Currently translated at 100.0% (3763 of 3763 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
2023-03-31 08:20:25 +00:00
Michael Weimann af151700c9
Strictify `src/components/structures/Space*` (#10481) 2023-03-31 10:20:15 +02:00
Weblate 795364abbe Merge branch 'origin/develop' into Weblate. 2023-03-31 07:43:54 +00:00
Michael Weimann dddef858f1
Fix detection of encryption for all users in a room (#10487) 2023-03-31 09:43:47 +02:00
Weblate b7326ebf21 Merge branch 'origin/develop' into Weblate. 2023-03-31 07:30:51 +00:00
Eric Eastwood ff1468b6d3
Replace `newTranslatableError` with `UserFriendlyError` (#10440
* Introduce UserFriendlyError

* Replace newTranslatableError with UserFriendlyError

* Remove ITranslatableError

* Fix up some strict lints

* Document when we/why we can remove

* Update matrix-web-i18n

Includes changes to find `new UserFriendlyError`,
see https://github.com/matrix-org/matrix-web-i18n/pull/6

* Include room ID in error

* Translate fallback error

* Translate better

* Update i18n strings

* Better re-use

* Minor comment fixes
2023-03-31 08:30:43 +01:00
Weblate 1b6ade29ab Merge branch 'origin/develop' into Weblate. 2023-03-30 09:26:25 +00:00
Michael Telatynski 567248d5c5
Add aria labels to message search bar to improve accessibility (#10476) 2023-03-30 10:26:19 +01:00
Weblate 480e31e728 Merge branch 'origin/develop' into Weblate. 2023-03-30 09:11:24 +00:00
Suguru Hirahara 232daaff68
Fix decryption failure bar covering the timeline (#10360)
* Use grid layout instead

- BEM naming style
- Increase block gap from 4px to 8px
- Use flexbox inside 'header' grid-area to let the buttons wrapped
- Use variables
- Remove 4px gap when one of the buttons is not rendered
- Change 'body' to 'message'
- Set 'align-self: start' to the icon and spinner

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Unset height of spinner

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Break lines at newline characters with white-space: pre-line

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Edit tests to check decryption failure bars on narrow timeline

- checkTimelineNarrow() looks for buttons by default
- Test indicator as well

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Remove a line

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Edit the test to have it check mx_EventTile_last only inside mx_RoomView_body

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Fix double underscores

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Fix double underscores - pcss

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Iterate - buttons at the bottom

- Set common spacing to buttons with variables
- Remove line breaks, yarn run i18n
- Set data-testid for headlines and buttons in case the tested strings would be displayed elsewhere simultaneously

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Check waiting headline as well

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Increase spacing between the message and the buttons

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* lint

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Increase block gap between wrapped buttons for clickability

Apply 8px between wrapped buttons

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Revert bottom margin of buttons which are not expected to be wrapped

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Check visibility instead of existence

This commit removes data-testid from headlines and data-testid-button and checks whether the elements are really visible, not overflowing the viewport.

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Remove redundant gap between 'mx_DecryptionFailureBar_start' and the bottom edge

This commit adds '.mx_DecryptionFailureBar--withEnd' class name to have it applied to the bar only if it has button(s). This way the bar is rendered with a flexbox and the row-gap declaration is respected only if there is a 'mx_DecryptionFailureBar--withEnd' element. The element  currently includes the button(s) only.

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* lint - prettier

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Have Percy take a snapshot of the bar loading spinner before checkTimelineNarrow()

The loading spinner is likely to disappear while checking the bar on the narrow timeline.

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

---------

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
Co-authored-by: Kerry <kerrya@element.io>
2023-03-30 10:11:16 +01:00
Weblate b831563e23 Merge branch 'origin/develop' into Weblate. 2023-03-30 08:44:34 +00:00
Michael Weimann 052c7e6d27
Strictify `components/structures/Thread*` (#10478)
* Strictify `components/structures/Thread*`

* Fix ThreadView event Id
2023-03-30 09:44:28 +01:00
Weblate 02d8ddb4f6 Merge branch 'origin/develop' into Weblate. 2023-03-30 08:06:57 +00:00
Michael Weimann 9aef1874db
Strictify `stores/room-list` (#10474) 2023-03-30 09:06:50 +01:00
Weblate de831a35bb Merge branch 'origin/develop' into Weblate. 2023-03-30 07:28:15 +00:00
Michael Telatynski 9848cdf4e7
Apply `strictNullChecks` to `src/components/structures/Space*` (#10475) 2023-03-30 08:28:08 +01:00
Weblate 48b2e509f9 Merge branch 'origin/develop' into Weblate. 2023-03-29 21:47:18 +00:00
Balázs Meskó edb80e57ed Translated using Weblate (Hungarian)
Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/
2023-03-29 21:47:18 +00:00
Kerry 9a733a6444
Apply `strictNullChecks` to `src/utils/exportUtils` (#10379)
* Apply `strictNullChecks` to `src/utils/exportUtils`

* strict fix

* test coverage

* lint

* test coverage

* one more test
2023-03-29 21:47:07 +00:00
Weblate f9c9110565 Merge branch 'origin/develop' into Weblate. 2023-03-29 14:00:58 +00:00
random 409c161323 Translated using Weblate (Italian)
Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/
2023-03-29 14:00:58 +00:00
Michael Telatynski 1447829543
Improve profile picture settings accessibility (#10470) 2023-03-29 14:00:45 +00:00
Glandos 23e3219402 Translated using Weblate (French)
Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/
2023-03-29 11:53:09 +00:00
Weblate 950a3ea4e6 Merge branch 'origin/develop' into Weblate. 2023-03-29 07:24:00 +00:00
Michael Telatynski a47b3eb0ee
Apply `strictNullChecks` to `src/components/views/elements/*` (#10462
* Apply `strictNullChecks` to `src/components/views/elements/*`

* Iterate

* Iterate

* Iterate

* Apply `strictNullChecks` to `src/components/views/elements/*`

* Iterate

* Iterate

* Iterate

* Update snapshot
2023-03-29 08:23:54 +01:00
Weblate 476ee7b86c Merge branch 'origin/develop' into Weblate. 2023-03-29 07:22:44 +00:00
Priit Jõerüüt 3613a73e33 Translated using Weblate (Estonian)
Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/
2023-03-29 07:22:44 +00:00
Michael Telatynski cefd94859c
Conform `src/components/views/messages/*` code to `strictNullChecks` (#10461) 2023-03-29 08:22:35 +01:00
Jozef Gaal 615c3a6190 Translated using Weblate (Slovak)
Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/
2023-03-29 06:47:23 +00:00
waclaw66 bb8319adfa Translated using Weblate (Czech)
Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/
2023-03-29 06:47:21 +00:00
Linerly ab94089f44 Translated using Weblate (Indonesian)
Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/id/
2023-03-29 06:47:19 +00:00
Ihor Hordiichuk b0554b90bd Translated using Weblate (Ukrainian)
Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/
2023-03-29 06:47:18 +00:00
Jeff Huang 941a43475e Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-29 06:47:15 +00:00
Vri 13a44079f6 Translated using Weblate (German)
Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
2023-03-29 06:47:13 +00:00
Weblate 137e049f1d 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-28 22:14:51 +00:00
Weblate 124fbdd8b8 Merge branch 'origin/develop' into Weblate. 2023-03-28 22:13:57 +00:00
Kerry 6eda1fa6e2
replace `Polls history` strings with `Poll history` (#10454)
Co-authored-by: Michael Weimann <michaelw@matrix.org>
2023-03-28 22:13:51 +00:00
Weblate 25f0104468 Merge branch 'origin/develop' into Weblate. 2023-03-28 13:31:57 +00:00
RiotRobot 0475e7107f Merge branch 'master' into develop 2023-03-28 14:30:52 +01:00
Weblate 90061fde7a Merge branch 'origin/develop' into Weblate. 2023-03-28 13:16:36 +00:00
Robin edef4cc52e
Handle group call redaction (#10465)
Redacted group call events should be interpreted as terminated calls.
2023-03-28 13:16:30 +00:00
Michael Weimann c30b2637c5 Changes for v3.69.0 2023-03-28 11:23:16 +01:00
Weblate e2f4fece1a Merge branch 'origin/develop' into Weblate. 2023-03-27 21:07:55 +00:00
Kerry ae50eee135
Apply `strictNullChecks` to `src/utils/pillify.tsx` (#10456)
* apply strictNullChecks to src/utils/pillify.tsx

* include change to utility

* apply strictNullChecks to src/utils/permalinks
2023-03-28 10:07:49 +13:00
Weblate af64dbb9f6 Merge branch 'origin/develop' into Weblate. 2023-03-27 20:22:53 +00:00
Kerry cd700e20fc
Display relative timestamp for threads on the same calendar day (#10399)
* add test cases for <24 different day time formatting

* use day instead of <24h ago to format relative date
2023-03-27 20:22:46 +00:00
Weblate b653fa5009 Merge branch 'origin/develop' into Weblate. 2023-03-27 20:10:25 +00:00
maheichyk 68fa9aed9d
Show "Invite" menu option if "UIComponent.sendInvites" is enabled. (#10363)
* Show "Invite" menu option if "UIComponent.sendInvites" is enabled.

Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>

* Update test names

Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>

---------

Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
Co-authored-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
2023-03-28 09:10:18 +13:00
Weblate d187a77e40 Merge branch 'origin/develop' into Weblate. 2023-03-27 16:19:49 +00:00
Michael Weimann b0de7b3bb6
Use unique keys for voice broadcast pips (#10457) 2023-03-27 18:19:42 +02:00
Weblate 093e9b148c Merge branch 'origin/develop' into Weblate. 2023-03-27 13:48:17 +00:00
Michael Telatynski 065e970325
Conform `src/hooks/*` code to `strictNullChecks` (#10460) 2023-03-27 14:45:46 +01:00
Weblate 7bd4bc7871 Merge branch 'origin/develop' into Weblate. 2023-03-27 10:57:11 +00:00
Janne Mareike Koschinski 63678603e0
Revert "Mentions as links rte (#10422)" (#10458)
This reverts commit 1af71089dd.
2023-03-27 12:57:05 +02:00
Weblate 0d2567c270 Merge branch 'origin/develop' into Weblate. 2023-03-27 08:56:37 +00:00
Michael Telatynski 58a4003a59
Fix "show read receipts sent by other users" not applying to threads (#10445) 2023-03-27 09:56:31 +01:00
Weblate a6ec3659a3 Merge branch 'origin/develop' into Weblate. 2023-03-27 08:07:50 +00:00
Michael Weimann aec454dd6f
Add `UserProfilesStore`, `LruCache` and cache for user permalink profiles (#10425) 2023-03-27 10:07:43 +02:00
Weblate 68c2c98cf4 Merge branch 'origin/develop' into Weblate. 2023-03-27 07:39:41 +00:00
Michael Telatynski 1c039fcd38
Fix joining public rooms without aliases in search dialog (#10437)
Co-authored-by: Andy Balaam <andy.balaam@matrix.org>
2023-03-27 07:39:34 +00:00
Weblate 1dbd0b0023 Merge branch 'origin/develop' into Weblate. 2023-03-27 07:01:16 +00:00
Michael Telatynski c225b8ec29
Conform more code to `strictNullChecks` (#10444
* Conform more code to `strictNullChecks`

* Fix tests

* Fix tests
2023-03-27 08:01:09 +01:00
Weblate f52f7db9c7 Merge branch 'origin/develop' into Weblate. 2023-03-27 06:38:06 +00:00
Priit Jõerüüt b780a02531 Translated using Weblate (Estonian)
Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/
2023-03-27 06:38:06 +00:00
Jozef Gaal 0f5091a14e Translated using Weblate (Slovak)
Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/
2023-03-27 06:38:03 +00:00
waclaw66 f9c7ced7e7 Translated using Weblate (Czech)
Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/
2023-03-27 06:37:59 +00:00
Linerly 1b1181c48c Translated using Weblate (Indonesian)
Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/id/
2023-03-27 06:37:57 +00:00
Ihor Hordiichuk 0ce227d233 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/
2023-03-27 06:37:54 +00:00
Jeff Huang 5685f78bfa Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-27 06:37:50 +00:00
Glandos 8b544e7186 Translated using Weblate (French)
Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/
2023-03-27 06:37:48 +00:00
Vri b1b7b7eeb0 Translated using Weblate (German)
Currently translated at 100.0% (3762 of 3762 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
2023-03-27 06:37:45 +00:00
Michael Weimann ba2608ec74
Add `m.direct` filter / validation (#10436) 2023-03-27 08:37:35 +02:00
Weblate dd69c5010b 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-24 19:40:26 +00:00
Weblate 7585027378 Merge branch 'origin/develop' into Weblate. 2023-03-24 19:39:31 +00:00
Eric Eastwood e5f06df3f7
Better error handling in jump to date (#10405)
- Friendly error messages with details
 - Add a way to submit debug logs for actual errors (non-networking errors)
 - Don't jump someone back to a room they already navigated away from. Fixes bug mentioned in https://github.com/vector-im/element-web/issues/21263#issuecomment-1056809714
2023-03-24 14:39:24 -05:00
Weblate 58e91c9a50 Merge branch 'origin/develop' into Weblate. 2023-03-24 17:07:32 +00:00
alunturner 1af71089dd
Mentions as links rte (#10422)
* bumps the RTE dependency to introduce user/room mention handling
* adds autocomplete behaviour to allow users to insert user and room mentions as links
* sets up tests for the autocomplete behaviour
2023-03-24 17:07:24 +00:00
Weblate dd6901c000 Merge branch 'origin/develop' into Weblate. 2023-03-24 12:57:42 +00:00
Glandos 0199c43533 Translated using Weblate (French)
Currently translated at 100.0% (3755 of 3755 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/
2023-03-24 12:57:42 +00:00
Suguru Hirahara 8e1b9f46d4
Set expected value of line-height to expanded generic event list summary (GELS) spacer on IRC layout (#10211)
* Set expected line height to an expanded GELS line on IRC layout, add a test
* Add a test for compact modern/group layout
* Create a new test category on timeline.spec.ts
* Rename the class name as 'spacer'
* Add a test for GELS' spacer on bubble layout
---------

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
Co-authored-by: Germain <germain@souquet.com>
2023-03-24 12:57:32 +00:00
waclaw66 3c02dc246c Translated using Weblate (Czech)
Currently translated at 100.0% (3755 of 3755 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/
2023-03-24 09:26:01 +00:00
Linerly 8c519da3ad Translated using Weblate (Indonesian)
Currently translated at 100.0% (3755 of 3755 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/id/
2023-03-24 09:25:59 +00:00
Ihor Hordiichuk 0f6ccace67 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (3755 of 3755 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/
2023-03-24 09:25:58 +00:00
Weblate 8e60acc159 Merge branch 'origin/develop' into Weblate. 2023-03-23 17:25:30 +00:00
Jozef Gaal c83567f95d Translated using Weblate (Slovak)
Currently translated at 100.0% (3755 of 3755 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/
2023-03-23 17:25:30 +00:00
random 692256b1d1 Translated using Weblate (Italian)
Currently translated at 100.0% (3755 of 3755 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/
2023-03-23 17:25:28 +00:00
Peter Chen 39f27621d1 Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3755 of 3755 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-23 17:25:26 +00:00
Justin Carlson 332d1268a4
Fix `creatorUserId is required` error when opening sticker picker (#10423)
* Use sender if sticker picker widget does not have creatorUserId

* Add creatorUserId when creating sticker picker widgets

* Add e2e test for stickerpicker widget missing creatorUserId

* Fix stickerpicker widget event data in e2e tests

* Fix userId in stickerpicker e2e tests

* Fix linter errors
2023-03-23 17:25:16 +00:00
Priit Jõerüüt 0181191ced Translated using Weblate (Estonian)
Currently translated at 100.0% (3755 of 3755 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/
2023-03-23 14:55:27 +00:00
Vri 1f965222fd Translated using Weblate (German)
Currently translated at 100.0% (3755 of 3755 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
2023-03-23 14:55:25 +00:00
Weblate 9f8fb02fa9 Merge branch 'origin/develop' into Weblate. 2023-03-23 13:36:02 +00:00
Florian Duros e4dfb21e56
Fix strict `strictNullChecks` to `src/editor/*` (#10428
* Fix strict `strictNullChecks` to `src/editor/*`

* Fix autoComplete creation

* Fix dom regression

* Remove changes
2023-03-23 13:35:55 +00:00
Weblate 16d68c7e7d Merge branch 'origin/develop' into Weblate. 2023-03-23 11:47:46 +00:00
Patrick Cloke e19127f8ad
Implement MSC3952: intentional mentions (#9983)
Implements the intentional mentions feature of MSC3952 (behind
a labs flag).

If enabled, this will send an org.matrix.msc3952.mentions property
on events that will contain the user IDs and/or whether the room is
being mentioned. These mentions also gets propagated via some
custom behaviour for replies and edits.
2023-03-23 11:47:40 +00:00
Linerly ba37daaecc Translated using Weblate (Indonesian)
Currently translated at 100.0% (3754 of 3754 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/id/
2023-03-23 11:14:51 +00:00
Jeff Huang ee9dc3dca6 Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3754 of 3754 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-23 11:14:49 +00:00
Szimszon 9ec4d2b620 Translated using Weblate (Hungarian)
Currently translated at 100.0% (3754 of 3754 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/
2023-03-23 11:14:47 +00:00
Glandos d218c78166 Translated using Weblate (French)
Currently translated at 100.0% (3754 of 3754 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/
2023-03-23 11:14:45 +00:00
Priit Jõerüüt c0f4a08066 Translated using Weblate (Estonian)
Currently translated at 100.0% (3754 of 3754 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/
2023-03-22 20:22:33 +00:00
Jozef Gaal b07459bdf6 Translated using Weblate (Slovak)
Currently translated at 100.0% (3754 of 3754 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/
2023-03-22 20:22:31 +00:00
Ihor Hordiichuk d2be40fc4b Translated using Weblate (Ukrainian)
Currently translated at 100.0% (3754 of 3754 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/
2023-03-22 20:22:29 +00:00
Weblate 92d2aba77d 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-22 16:46:52 +00:00
Weblate ee1f3d9813 Merge branch 'origin/develop' into Weblate. 2023-03-22 16:45:59 +00:00
Besnik Bleta 5d0679286b Translated using Weblate (Albanian)
Currently translated at 99.6% (3740 of 3754 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sq/
2023-03-22 16:45:58 +00:00
waclaw66 0d3220c1e6 Translated using Weblate (Czech)
Currently translated at 100.0% (3754 of 3754 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/
2023-03-22 16:45:55 +00:00
Vri 5249a0d073 Translated using Weblate (German)
Currently translated at 100.0% (3754 of 3754 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
2023-03-22 16:45:53 +00:00
Eric Eastwood ed88e0cdce
Prevent future date selection in jump to date (#10419)
You can still type in whatever date you want (native date input behavior) but the UI picker has future dates disabled.

Fix https://github.com/vector-im/element-web/issues/20800
2023-03-22 11:45:44 -05:00
Weblate 9376380bbd 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-22 12:28:25 +00:00
Weblate e445da50f2 Merge branch 'origin/develop' into Weblate. 2023-03-22 12:27:32 +00:00
Michael Weimann 3eb6a55b93
Tweak pill UI (#10417) 2023-03-22 13:27:24 +01:00
Weblate 8b67247221 Merge branch 'origin/develop' into Weblate. 2023-03-22 12:15:33 +00:00
Andy Balaam ba36d2cc01
Improve strictNullChecks support in right_panel (#10415) 2023-03-22 12:15:26 +00:00
Jozef Gaal 8ac8d3a735 Translated using Weblate (Slovak)
Currently translated at 100.0% (3754 of 3754 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/
2023-03-22 08:38:32 +00:00
Jiri Grönroos 3f08696323 Translated using Weblate (Finnish)
Currently translated at 90.1% (3385 of 3754 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fi/
2023-03-22 08:38:29 +00:00
Glandos b4063b420d Translated using Weblate (French)
Currently translated at 100.0% (3754 of 3754 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/
2023-03-22 08:38:23 +00:00
Weblate dd9dce9a4a Merge branch 'origin/develop' into Weblate. 2023-03-21 15:56:07 +00:00
Priit Jõerüüt 0eb730a4f3 Translated using Weblate (Estonian)
Currently translated at 100.0% (3754 of 3754 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/
2023-03-21 15:56:07 +00:00
random 02189eba7e Translated using Weblate (Italian)
Currently translated at 100.0% (3754 of 3754 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/
2023-03-21 15:56:04 +00:00
Peter Chen dc01c742f3 Translated using Weblate (Chinese (Traditional))
Currently translated at 99.9% (3753 of 3754 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-21 15:56:02 +00:00
Vri 417714b12a Translated using Weblate (German)
Currently translated at 100.0% (3754 of 3754 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
2023-03-21 15:56:00 +00:00
Eric Eastwood f7fe0e9d8b
Fix block/inline Element descendants error noise in NewRoomIntro.tsx (#10412)
Error before:
```
Warning: validateDOMNesting(...): <div> cannot appear as a descendant of <p>.
    at div
    at AccessibleButton (webpack-internal:///470:43:7)
    at span
    at p
    at li
    at NewRoomIntro (webpack-internal:///2063:77:71)
    at ol
    at div
    at div
    at AutoHideScrollbar (webpack-internal:///1020:37:5)
    at ScrollPanel (webpack-internal:///1106:69:5)
    at ErrorBoundary (webpack-internal:///2070:47:5)
    at MessagePanel (webpack-internal:///2060:169:5)
    at TimelinePanel (webpack-internal:///2095:113:5)
    at div
    at div
    at div
    at MainSplit (webpack-internal:///2019:31:5)
    at ErrorBoundary (webpack-internal:///2070:47:5)
    at main
    at RoomView (webpack-internal:///2018:330:5)
    at div
    at div
    at div
    at LoggedInView (webpack-internal:///1907:130:5)
    at ErrorBoundary (webpack-internal:///2070:47:5)
    at MatrixChat (webpack-internal:///1900:234:5)
```
2023-03-21 10:55:48 -05:00
Weblate b36d33f772 Merge branch 'origin/develop' into Weblate. 2023-03-21 11:38:54 +00:00
waclaw66 48d357c65d Translated using Weblate (Czech)
Currently translated at 100.0% (3754 of 3754 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/
2023-03-21 11:38:54 +00:00
Ihor Hordiichuk f7ecb1a805 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (3754 of 3754 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/
2023-03-21 11:38:52 +00:00
Dominik Henneke ef68650594
Implement MSC3973: Search users in the user directory with the Widget API (#10269)
* Add an action to search for users in the user directory according to MSC3973

Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>

* Fix linter errors

Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>

* Update the matrix-widget-api package to version 1.3.0

Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>

* Improve the test

Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>

---------

Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>
2023-03-21 11:38:41 +00:00
Weblate d94761fbd0 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-21 09:24:20 +00:00
Weblate 4a5467c8a4 Merge branch 'origin/develop' into Weblate. 2023-03-21 09:23:27 +00:00
Michael Weimann 96d1b74ffc
Pillify event permalinks (#10392) 2023-03-21 10:23:20 +01:00
Weblate 51f831c734 Merge branch 'origin/develop' into Weblate. 2023-03-21 09:08:51 +00:00
Michael Weimann c238e72e47
Strictify audio-messages (#10410) 2023-03-21 09:08:44 +00:00
Weblate 429b674bd5 Merge branch 'origin/develop' into Weblate. 2023-03-21 09:06:52 +00:00
maheichyk d4b81882e5
Show filterContainer if "UIComponent.filterContainer" is enabled (#10381)
Signed-off-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
Co-authored-by: Mikhail Aheichyk <mikhail.aheichyk@nordeck.net>
2023-03-21 09:06:43 +00:00
Peter Chen 381a795c13 Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3751 of 3751 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-20 16:52:33 +00:00
Weblate a4bb307be1 Merge branch 'origin/develop' into Weblate. 2023-03-20 16:05:18 +00:00
Eric Eastwood bac1ca5355
Remove unreadable alt attribute from the room status bar warning icon (nonsense to screenreaders) (#10402)
And the other content like the title already describe what's going on sufficiently.

Split out from https://github.com/matrix-org/matrix-react-sdk/pull/8354
2023-03-20 11:05:03 -05:00
Weblate 6b9c819414 Merge branch 'origin/develop' into Weblate. 2023-03-20 16:04:19 +00:00
Eric Eastwood 7a68bd9cef
Fix big date separators when jump to date is enabled (#10404)
Fix https://github.com/vector-im/element-web/issues/22969
2023-03-20 11:03:36 -05:00
Weblate b671c18fbe Merge branch 'origin/develop' into Weblate. 2023-03-20 15:59:03 +00:00
Peter Chen 7bee180648 Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3751 of 3751 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-20 15:59:03 +00:00
Eric Eastwood 5b2e12ca0c
Refactor custom logic to use the shared canResetTimeline() (#10403)
Split out from https://github.com/matrix-org/matrix-react-sdk/pull/8354#discussion_r852611407
2023-03-20 10:58:53 -05:00
Szimszon 93da621d81 Translated using Weblate (Hungarian)
Currently translated at 100.0% (3751 of 3751 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/
2023-03-20 12:21:17 +00:00
Weblate 50fdf603f9 Merge branch 'origin/develop' into Weblate. 2023-03-20 09:54:30 +00:00
Janne Mareike Koschinski 503df54bd6
Handle more edge cases in Space Hierarchy (#10280) 2023-03-20 10:54:24 +01:00
Weblate 1c007feefc Merge branch 'origin/develop' into Weblate. 2023-03-20 09:50:18 +00:00
Andy Balaam ca0dfb6c1e
Further improve performance with lots of hidden events (#10353)
* Avoid re-calculating shouldShowEvent in getReadReceiptsByShownEvent

* Test that uses a MainGrouper

* Cache more calls to shouldShowEvent
2023-03-20 09:50:07 +00:00
Peter Chen 18780ff155 Translated using Weblate (Chinese (Traditional))
Currently translated at 99.9% (3750 of 3751 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-19 18:33:47 +00:00
Weblate bf6d3d6975 Merge branch 'origin/develop' into Weblate. 2023-03-17 20:08:23 +00:00
Eric Eastwood bc60e59eda
Add stable unstable version for jump to date before `v1.6` is fully supported on a homeserver (#10398)
Add stable unstable version (`org.matrix.msc3030.stable`) for jump to date [before `v1.6` is fully supported on a homeserver](https://github.com/matrix-org/synapse/issues/15089).

Related to https://github.com/vector-im/element-web/issues/24362 but does not solve immediately because Synapse does not supply `org.matrix.msc3030.stable` yet

Also refactored `ServerSupportUnstableFeatureController` to support multiple feature groups where any one of them will enable the setting. All features in a feature group are required. This way having either `org.matrix.msc3030` or `org.matrix.msc3030.stable` will enable the jump to date feature flag with a config of `[["org.matrix.msc3030"], ["org.matrix.msc3030.stable"]]`
2023-03-17 15:08:17 -05:00
Weblate fe9ee2a9f2 Merge branch 'origin/develop' into Weblate. 2023-03-17 17:31:43 +00:00
Eric Eastwood f3f87054b4
MSC3030 jump to date stable is part of Matrix v1.6 (#10397)
See https://matrix.org/blog/2023/02/14/matrix-v-1-6-release
2023-03-17 12:31:36 -05:00
Weblate 0064feaad0 Merge branch 'origin/develop' into Weblate. 2023-03-16 23:58:46 +00:00
Kerry b2c046689e
Apply `strictNullChecks` to `src/components/views/dialogs/devtools/*` (#10391) 2023-03-16 23:58:41 +00:00
Weblate cd1c4ba03f Merge branch 'origin/develop' into Weblate. 2023-03-16 21:28:05 +00:00
Peter Chen 8b47947cda Translated using Weblate (Chinese (Traditional))
Currently translated at 99.9% (3750 of 3751 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-16 21:28:05 +00:00
Kerry 5211b628d6
add fallback reply for poll start (#10380) 2023-03-16 21:27:56 +00:00
Weblate 401383e1e5 Merge branch 'origin/develop' into Weblate. 2023-03-16 14:01:19 +00:00
Glandos 4c64602334 Translated using Weblate (French)
Currently translated at 100.0% (3751 of 3751 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/
2023-03-16 14:01:19 +00:00
Michael Weimann a86a8e7f8e
Pillify permalinks to rooms and users (#10388) 2023-03-16 15:01:09 +01:00
Weblate 84e7d9e6c6 Merge branch 'origin/develop' into Weblate. 2023-03-16 12:24:28 +00:00
Michael Telatynski d850c95099
Respect user cancelling upload flow by dismissing spinner (#10373) 2023-03-16 12:24:22 +00:00
Weblate fbfad792d1 Merge branch 'origin/develop' into Weblate. 2023-03-16 11:07:38 +00:00
Michael Telatynski 1c9ea423c9
Conform more code to `strictNullChecks` (#10374)
* Apply `strictNullChecks` to `src/components/views/room_settings/*`

* Restore tsconfig.json

* Conform more code to `strictNullChecks`

* Iterate

* Update matrix-widget-api

* Conform more code to `strictNullChecks`
2023-03-16 11:07:29 +00:00
Weblate d4847cb58d Merge branch 'origin/develop' into Weblate. 2023-03-16 10:35:28 +00:00
Peter Chen dddfe45b55 Translated using Weblate (Chinese (Traditional))
Currently translated at 99.9% (3750 of 3751 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-16 10:35:28 +00:00
Michael Telatynski 9c816bb720
Conform more code to `strictNullChecks` (#10383
* Update matrix-widget-api

* Conform more code to `strictNullChecks`

* Iterate
2023-03-16 10:35:17 +00:00
Weblate 722f290e48 Merge branch 'origin/develop' into Weblate. 2023-03-16 09:56:04 +00:00
Peter Chen 057576cee5 Translated using Weblate (Chinese (Traditional))
Currently translated at 99.9% (3750 of 3751 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-16 09:56:04 +00:00
Weblate f5a1c9a1e5 Merge branch 'origin/develop' into Weblate. 2023-03-16 09:55:07 +00:00
Linerly 605322d9ea Translated using Weblate (Indonesian)
Currently translated at 100.0% (3751 of 3751 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/id/
2023-03-16 09:55:07 +00:00
Michael Weimann aae9dfbb7d
Strictify voice-broadcast (#10393) 2023-03-16 10:55:06 +01:00
Jeff Huang 50e24f94da Translated using Weblate (Chinese (Traditional))
Currently translated at 99.9% (3750 of 3751 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-16 09:55:04 +00:00
Peter Chen 7238b36ece Translated using Weblate (Chinese (Traditional))
Currently translated at 99.9% (3750 of 3751 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-16 09:55:03 +00:00
Michael Weimann 6d15b05b86
Fix wrong E2E icon in room header for unencrypted local room (#10394) 2023-03-16 10:54:54 +01:00
Weblate 1cbd5c37a9 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-15 20:55:12 +00:00
Weblate 3b4951749c Merge branch 'origin/develop' into Weblate. 2023-03-15 20:54:19 +00:00
Kerry 2344eaab1c
Poll history - remove active development labs flag (#10357)
* add poll history tab to room settings

* test poll history in room settings

* remove posthog tracking for poll his

* remove labs flag for poll history

* i18n
2023-03-15 20:54:12 +00:00
Weblate 9f5f845b44 Merge branch 'origin/develop' into Weblate. 2023-03-15 20:28:06 +00:00
Kerry 31a959efe9
Apply `strictNullChecks` to `src/resizer/*` (#10378) 2023-03-15 20:27:59 +00:00
Weblate 95c8f22abd Merge branch 'origin/develop' into Weblate. 2023-03-15 17:32:38 +00:00
Michael Weimann 37d218eb61
Stricitfy rageshake (#10389) 2023-03-15 17:32:31 +00:00
Weblate 837a90a1f4 Merge branch 'origin/develop' into Weblate. 2023-03-15 16:53:59 +00:00
Peter Chen 7889983881 Translated using Weblate (Chinese (Traditional))
Currently translated at 99.8% (3747 of 3752 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-15 16:53:59 +00:00
Michael Telatynski a4262cd8cf
Fix `[object Object]` in feedback metadata (#10390) 2023-03-15 16:53:49 +00:00
Weblate 6efbab0896 Merge branch 'origin/develop' into Weblate. 2023-03-15 15:56:42 +00:00
random fc81f39c7f Translated using Weblate (Italian)
Currently translated at 100.0% (3752 of 3752 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/
2023-03-15 15:56:42 +00:00
Peter Chen b61508a83d Translated using Weblate (Chinese (Traditional))
Currently translated at 99.8% (3747 of 3752 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-15 15:56:40 +00:00
Michael Telatynski 1e651bf1a5
Clear electron data when logging out (#10386) 2023-03-15 15:56:29 +00:00
Weblate 3698966c63 Merge branch 'origin/develop' into Weblate. 2023-03-15 12:56:22 +00:00
Michael Telatynski f37ae1e230
Fix sanitise html warning about unsafe tags (#10384) 2023-03-15 12:56:15 +00:00
Weblate 41a8db19bb Merge branch 'origin/develop' into Weblate. 2023-03-15 12:51:54 +00:00
Dominik Henneke 0cfd97b180
Add API params to mute audio and/or video in Jitsi calls by default (#10376)
Signed-off-by: Dominik Henneke <dominik.henneke@nordeck.net>
2023-03-15 13:51:00 +01:00
Weblate 8ceacf2b21 Merge branch 'origin/develop' into Weblate. 2023-03-15 12:47:44 +00:00
Besnik Bleta 6be8f6d13b Translated using Weblate (Albanian)
Currently translated at 99.5% (3734 of 3752 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sq/
2023-03-15 12:47:44 +00:00
Jozef Gaal e193ef7417 Translated using Weblate (Slovak)
Currently translated at 100.0% (3752 of 3752 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/
2023-03-15 12:47:42 +00:00
waclaw66 567805ea88 Translated using Weblate (Czech)
Currently translated at 100.0% (3752 of 3752 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/
2023-03-15 12:47:39 +00:00
Ihor Hordiichuk f6352f50ca Translated using Weblate (Ukrainian)
Currently translated at 100.0% (3752 of 3752 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/
2023-03-15 12:47:37 +00:00
Peter Chen 1515dbb5d5 Translated using Weblate (Chinese (Traditional))
Currently translated at 99.8% (3748 of 3752 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-15 12:47:34 +00:00
Vri a76abb05be Translated using Weblate (German)
Currently translated at 100.0% (3752 of 3752 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
2023-03-15 12:47:32 +00:00
Michael Telatynski 87fb493783
Fix pinned messages card saying nothing pinned while loading (#10385) 2023-03-15 12:47:21 +00:00
Weblate c3563d94c6 Merge branch 'origin/develop' into Weblate. 2023-03-15 09:20:33 +00:00
Priit Jõerüüt b61a3ac43a Translated using Weblate (Estonian)
Currently translated at 100.0% (3752 of 3752 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/
2023-03-15 09:20:33 +00:00
Glandos fd3ab38bbd Translated using Weblate (French)
Currently translated at 99.8% (3746 of 3752 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/
2023-03-15 09:20:30 +00:00
Michael Telatynski 0c38bd7beb
Fix import e2e key dialog staying disabled after paste (#10375) 2023-03-15 09:20:20 +00:00
Weblate 6c4c3ce7b2 Merge branch 'origin/develop' into Weblate. 2023-03-15 08:39:08 +00:00
Michael Telatynski ad65b4e444
Apply `strictNullChecks` to `src/components/views/room_settings/*` (#10366
* Apply `strictNullChecks` to `src/components/views/room_settings/*`

* Restore tsconfig.json
2023-03-15 08:39:02 +00:00
Weblate 3198e93433 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-15 08:38:51 +00:00
Weblate 5f93d2d33e Merge branch 'origin/develop' into Weblate. 2023-03-15 08:37:57 +00:00
Jozef Gaal d2070d4840 Translated using Weblate (Slovak)
Currently translated at 100.0% (3749 of 3749 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/
2023-03-15 08:37:57 +00:00
Linerly e3563db5bf Translated using Weblate (Indonesian)
Currently translated at 100.0% (3749 of 3749 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/id/
2023-03-15 08:37:55 +00:00
Jeff Huang e2de6eb54f Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3749 of 3749 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-15 08:37:54 +00:00
Vri 5207b12a32 Translated using Weblate (German)
Currently translated at 100.0% (3749 of 3749 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
2023-03-15 08:37:51 +00:00
Michael Telatynski e3930fb8b0
Show all labs even if incompatible, with appropriate tooltip explaining requirements (#10369)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2023-03-15 08:37:41 +00:00
Weblate 9436fc7910 Merge branch 'origin/develop' into Weblate. 2023-03-14 21:25:28 +00:00
Priit Jõerüüt aa9acbad82 Translated using Weblate (Estonian)
Currently translated at 100.0% (3748 of 3748 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/
2023-03-14 21:25:28 +00:00
Linerly 04feab49c7 Translated using Weblate (Indonesian)
Currently translated at 100.0% (3748 of 3748 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/id/
2023-03-14 21:25:26 +00:00
Ihor Hordiichuk a7703dd86a Translated using Weblate (Ukrainian)
Currently translated at 100.0% (3748 of 3748 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/
2023-03-14 21:25:25 +00:00
Peter Chen 72ba385167 Translated using Weblate (Chinese (Traditional))
Currently translated at 99.9% (3747 of 3748 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-14 21:25:22 +00:00
Vri 10be69e4a1 Translated using Weblate (German)
Currently translated at 100.0% (3748 of 3748 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
2023-03-14 21:25:21 +00:00
Kerry 209b65243a
Enable "jsx-a11y/alt-text" and "jsx-a11y/label-has-associated-control" lint rules (#10361)
* enable "jsx-a11y/alt-text" lint rule

* enable "jsx-a11y/label-has-associated-control"
2023-03-14 21:25:11 +00:00
Weblate 20b16ab183 Merge branch 'origin/develop' into Weblate. 2023-03-14 15:20:48 +00:00
Peter Chen dbaab3884e Translated using Weblate (Chinese (Traditional))
Currently translated at 99.9% (3746 of 3747 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-14 15:20:48 +00:00
Michael Telatynski e0e83bd81d
Fix UIFeature.Registration not applying to all paths (#10371) 2023-03-14 15:20:38 +00:00
Priit Jõerüüt 856e969fd8 Translated using Weblate (Estonian)
Currently translated at 100.0% (3747 of 3747 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/
2023-03-14 14:32:29 +00:00
Besnik Bleta 376b600000 Translated using Weblate (Albanian)
Currently translated at 99.6% (3733 of 3747 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sq/
2023-03-14 14:32:27 +00:00
Peter Chen 40cdc0803b Translated using Weblate (Chinese (Traditional))
Currently translated at 99.9% (3746 of 3747 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-14 14:32:25 +00:00
Szimszon a44dd50ab0 Translated using Weblate (Hungarian)
Currently translated at 100.0% (3747 of 3747 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/
2023-03-14 14:32:23 +00:00
Weblate 0b2f696a10 Merge branch 'origin/develop' into Weblate. 2023-03-14 11:09:42 +00:00
Michael Telatynski 8cb8cd4eb1
Conform more code to `strictNullChecks` (#10368
* Conform more code to `strictNullChecks`

* Iterate
2023-03-14 11:09:35 +00:00
Michael Weimann 370c872d70 Roll back pillify everything (#10370)
(cherry picked from commit 05e3fb09d6)
2023-03-14 11:05:02 +00:00
Weblate dc07fb005c Merge branch 'origin/develop' into Weblate. 2023-03-14 10:56:23 +00:00
Peter Chen a5d0d63b94 Translated using Weblate (Chinese (Traditional))
Currently translated at 99.9% (3746 of 3747 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-14 10:56:23 +00:00
Michael Weimann 05e3fb09d6
Roll back pillify everything (#10370) 2023-03-14 11:56:14 +01:00
Weblate e0bed5d455 Merge branch 'origin/develop' into Weblate. 2023-03-14 09:29:53 +00:00
Jozef Gaal 74590de5d7 Translated using Weblate (Slovak)
Currently translated at 100.0% (3747 of 3747 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/
2023-03-14 09:29:53 +00:00
waclaw66 6eb8e29cd7 Translated using Weblate (Czech)
Currently translated at 100.0% (3747 of 3747 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/
2023-03-14 09:29:51 +00:00
Linerly b2b15a4698 Translated using Weblate (Indonesian)
Currently translated at 100.0% (3747 of 3747 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/id/
2023-03-14 09:29:49 +00:00
Jeff Huang c5834a652f Translated using Weblate (Chinese (Traditional))
Currently translated at 99.9% (3746 of 3747 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-14 09:29:48 +00:00
Peter Chen f853bc58f3 Translated using Weblate (Chinese (Traditional))
Currently translated at 99.9% (3746 of 3747 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-14 09:29:48 +00:00
Glandos 2ad0bae76f Translated using Weblate (French)
Currently translated at 100.0% (3747 of 3747 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/
2023-03-14 09:29:46 +00:00
Vri 69a324fab8 Translated using Weblate (German)
Currently translated at 100.0% (3747 of 3747 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
2023-03-14 09:29:44 +00:00
Michael Telatynski 7c2511a592
Apply `strictNullChecks` to `src/components/views/context_menus/*` (#10367) 2023-03-14 09:29:35 +00:00
Weblate f1f0527ee1 Merge branch 'origin/develop' into Weblate. 2023-03-13 22:09:07 +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
Weblate 1c5baeaea3 Merge branch 'origin/develop' into Weblate. 2023-03-13 21:59:12 +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
Weblate 3a9be33211 Merge branch 'origin/develop' into Weblate. 2023-03-13 21:56:00 +00:00
Peter Chen 5b7f90b348 Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3746 of 3746 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-13 21:55:59 +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
Weblate 57574dd7fa Merge branch 'origin/develop' into Weblate. 2023-03-13 15:08:06 +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
Weblate d0d4866c4b Merge branch 'origin/develop' into Weblate. 2023-03-13 14:43:24 +00:00
Open Culture Foundation 5afcc5dc79 Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3746 of 3746 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-13 14:43:23 +00:00
Michael Weimann 41d88ad6ae
Fix user pill click (#10359) 2023-03-13 15:43:13 +01:00
Weblate 061293e12a Merge branch 'origin/develop' into Weblate. 2023-03-12 20:22:36 +00: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
lunarna-gh dc5f3995e5 Translated using Weblate (Polish)
Currently translated at 62.8% (2356 of 3746 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/pl/
2023-03-12 16:33:51 +00:00
Open Culture Foundation e65cfb58aa Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3746 of 3746 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-12 16:33:44 +00:00
Weblate ddc85a04f8 Merge branch 'origin/develop' into Weblate. 2023-03-10 14:55:14 +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 a9161981e2 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>
(cherry picked from commit d53e91802d)
2023-03-10 14:41:04 +00:00
Weblate 0d125cd3d9 Merge branch 'origin/develop' into Weblate. 2023-03-10 14:40:00 +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
Weblate 7c15e1f961 Merge branch 'origin/develop' into Weblate. 2023-03-10 14:35:47 +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
Weblate 0c792f34ae Merge branch 'origin/develop' into Weblate. 2023-03-10 11:01:51 +00:00
Andy Balaam f8e645396e
Support dynamic room predecessor in SpaceProvider (#10348) 2023-03-10 11:01:45 +00:00
Weblate 3ad8b92621 Merge branch 'origin/develop' into Weblate. 2023-03-10 10:40:45 +00:00
Andy Balaam 6141cca652
Support dynamic room predecessors for RoomProvider (#10346) 2023-03-10 10:40:38 +00:00
Weblate db9fa92bde Merge branch 'origin/develop' into Weblate. 2023-03-10 09:42:16 +00:00
Andy Balaam 2e064e57a0
Support dynamic room predecessors in ForwardDialog (#10344) 2023-03-10 09:41:30 +00:00
Weblate d33972b7d1 Merge branch 'origin/develop' into Weblate. 2023-03-10 09:41:21 +00:00
Andy Balaam 42abfb1fac
Support dynamic room predecessors in SpaceHierarchy (#10341) 2023-03-10 09:41:14 +00:00
Weblate dcdfd2bb76 Merge branch 'origin/develop' into Weblate. 2023-03-10 09:16:08 +00:00
lunarna-gh 20098ab8be Translated using Weblate (Polish)
Currently translated at 61.8% (2317 of 3746 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/pl/
2023-03-10 09:16:08 +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
Weblate daae190aae Merge branch 'origin/develop' into Weblate. 2023-03-09 17:17:34 +00:00
Andy Balaam 37d2b7b17b
Support dynamic room predecessors in AddExistingToSpaceDialog (#10342) 2023-03-09 17:17:28 +00:00
Weblate ff535c425d Merge branch 'origin/develop' into Weblate. 2023-03-09 14:53:51 +00:00
Andy Balaam 421c1b9281
Support dynamic room predecessors in leave-behaviour (#10340) 2023-03-09 14:49:59 +00:00
Weblate 173947590b Merge branch 'origin/develop' into Weblate. 2023-03-09 13:02:39 +00:00
Szimszon 517d096cb2 Translated using Weblate (Hungarian)
Currently translated at 100.0% (3746 of 3746 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/
2023-03-09 13:02:39 +00:00
Andy Balaam f90bc40cfc
Support dynamic room predecessors in StopGapWidgetDriver (#10338) 2023-03-09 13:02:29 +00:00
Weblate ce657066a9 Merge branch 'origin/develop' into Weblate. 2023-03-09 12:15:57 +00:00
Szimszon 5bc51e9004 Translated using Weblate (Hungarian)
Currently translated at 99.7% (3738 of 3746 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/hu/
2023-03-09 12:15:57 +00:00
Patrick Cloke aca077cf2b
Add tests for createEditContent which mirror tests for createMessageContent. (#10331) 2023-03-09 12:15:48 +00:00
Weblate 1d04110e89 Merge branch 'origin/develop' into Weblate. 2023-03-09 11:48:45 +00:00
Peter Chen e116503008 Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3746 of 3746 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-09 11:48:45 +00:00
Michael Weimann 85e8d27697
Extract avatars from permalink hook (#10328) 2023-03-09 12:48:36 +01:00
Weblate 1cb02fa21e Merge branch 'origin/develop' into Weblate. 2023-03-09 10:18:29 +00: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
Weblate 0e15c8efbe Merge branch 'origin/develop' into Weblate. 2023-03-09 09:31:08 +00:00
Andy Balaam acb7dd84ac
Support dynamic room predecessors in SpaceStore (#10332) 2023-03-09 09:31:02 +00:00
Weblate a45715c50c Merge branch 'origin/develop' into Weblate. 2023-03-09 09:08:49 +00:00
Michael Telatynski 01d7b795ab
Silence sanitize-html warning (#10334) 2023-03-09 09:08:42 +00:00
Weblate 7d69e69ce1 Merge branch 'origin/develop' into Weblate. 2023-03-09 00:20:13 +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
Weblate bd4fb6b795 Merge branch 'origin/develop' into Weblate. 2023-03-08 15:34:12 +00:00
Janne Mareike Koschinski 2b39eac7b5
Handle more edge cases in ACL updates (#10279) 2023-03-08 16:33:58 +01:00
Weblate d2a9598c2a Merge branch 'origin/develop' into Weblate. 2023-03-08 15:13:39 +00: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
Weblate 9b0a2efdad Merge branch 'origin/develop' into Weblate. 2023-03-08 14:19:27 +00:00
Michael Telatynski bee4759208
Remove flux dependency (#10313) 2023-03-08 14:19:05 +00:00
Weblate 98c3fd7e71 Merge branch 'origin/develop' into Weblate. 2023-03-08 14:18:32 +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
Weblate d9ab106f21 Merge branch 'origin/develop' into Weblate. 2023-03-08 13:28:13 +00:00
Michael Telatynski 80fc0997a4
Explicitly specify all `children` props (#10312) 2023-03-08 13:28:07 +00:00
Weblate a9a9710917 Merge branch 'origin/develop' into Weblate. 2023-03-08 12:06:56 +00:00
Michael Weimann ad26925bb6
Refactor pill and add tests (#10304) 2023-03-08 13:06:50 +01:00
Weblate 596e48caa1 Merge branch 'origin/develop' into Weblate. 2023-03-08 11:49:04 +00: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
Weblate 2de4057271 Merge branch 'origin/develop' into Weblate. 2023-03-08 11:32:56 +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
Weblate 517952f55b Merge branch 'origin/develop' into Weblate. 2023-03-08 10:11:07 +00:00
Michael Weimann 6fa00a20b0
Use compound icons (#10292) 2023-03-08 11:11:01 +01:00
Weblate 2768e5c3bb Merge branch 'origin/develop' into Weblate. 2023-03-08 10:04:13 +00:00
Michael Telatynski 0db0d4b09d
Remove unused code (#10322) 2023-03-08 10:04:07 +00:00
Priit Jõerüüt 0b1401ac4f Translated using Weblate (Estonian)
Currently translated at 100.0% (3746 of 3746 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/et/
2023-03-08 09:50:32 +00:00
Jozef Gaal 54c969c16a Translated using Weblate (Slovak)
Currently translated at 100.0% (3746 of 3746 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sk/
2023-03-08 09:50:30 +00:00
Linerly aef87e986d Translated using Weblate (Indonesian)
Currently translated at 100.0% (3746 of 3746 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/id/
2023-03-08 09:50:28 +00:00
Ihor Hordiichuk bd88c4b202 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (3746 of 3746 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/uk/
2023-03-08 09:50:26 +00:00
Jeff Huang 9f60edeb6c Translated using Weblate (Chinese (Traditional))
Currently translated at 100.0% (3746 of 3746 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/zh_Hant/
2023-03-08 09:50:23 +00:00
Glandos 7870880ba4 Translated using Weblate (French)
Currently translated at 100.0% (3746 of 3746 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/fr/
2023-03-08 09:50:21 +00:00
Besnik Bleta b56323412c Translated using Weblate (Albanian)
Currently translated at 99.6% (3732 of 3746 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/sq/
2023-03-07 16:48:15 +00:00
Weblate fcd5f61530 Merge branch 'origin/develop' into Weblate. 2023-03-07 15:48:29 +00:00
Michael Telatynski f74867e57b
Allow parsing png files to fail if thumbnailing is successful (#10308) 2023-03-07 15:48:23 +00:00
Weblate 000b709acc Merge branch 'origin/develop' into Weblate. 2023-03-07 15:24:54 +00:00
random 07fcc7bd07 Translated using Weblate (Italian)
Currently translated at 100.0% (3746 of 3746 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/it/
2023-03-07 15:24:54 +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
waclaw66 f95b1b3646 Translated using Weblate (Czech)
Currently translated at 100.0% (3746 of 3746 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/cs/
2023-03-07 13:58:21 +00:00
Vri f0f556f4cc Translated using Weblate (German)
Currently translated at 100.0% (3746 of 3746 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/de/
2023-03-07 13:58:19 +00:00
Weblate ced5284172 Merge branch 'origin/develop' into Weblate. 2023-03-07 13:19:29 +00:00
Nui Harime 06eba4d382 Translated using Weblate (Russian)
Currently translated at 94.5% (3541 of 3744 strings)

Translation: Element Web/matrix-react-sdk
Translate-URL: https://translate.element.io/projects/element-web/matrix-react-sdk/ru/
2023-03-07 13:19:29 +00:00
Vri 70c885ac8b Translated using Weblate (German)
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/de/
2023-03-07 13:19:26 +00: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