Robin
0b0e414fd4
Fix unresponsive notification toggles ( #8549 )
...
* Return consistently typed setting values from localStorage
* Watch notification toggles
* Test that it all works
2022-05-10 09:13:02 -04:00
Travis Ralston
401e124df6
Merge branch 'develop' into 19245-improve-styling-of-search-initialization-errors
2022-05-09 19:32:43 -06:00
Travis Ralston
548290b006
Run a minor code quality checker over the repo ( #8524 )
...
* Run a minor code quality checker over the repo
Largely targeted at spelling of common words and misc code issues.
* Update snapshots
2022-05-09 22:52:05 +00:00
Kerry
333dd59f06
test typescriptification - RoomList ( #8540 )
...
* test/components/views/rooms/RoomList-test.js -> test/components/views/rooms/RoomList-test.tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-09 13:24:12 +00:00
Kerry
dc346d5e83
test typescriptification - RoomViewStore ( #8539 )
...
* test/stores/RoomViewStore-test.js -> test/stores/RoomViewStore-test.tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix tsc issues
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-09 15:14:45 +02:00
Michael Telatynski
674aec4050
Fix regression around pasting links ( #8537 )
...
* Fix regression around pasting links
* Add tests
2022-05-09 12:39:32 +00:00
Kalle Struik
7c07ad155c
Improve the styling of search initialization errors.
...
Signed-off-by: Kalle Struik <kalle@kallestruik.nl>
2022-05-09 11:20:36 +02:00
Robin
765a715fce
Remove duplicate tooltip from user pills ( #8512 )
...
* Remove duplicate tooltip from user pills
* Fix test
2022-05-06 21:26:32 +00:00
Kerry
e97536ef96
Live location sharing - refresh beacon timers on tab becoming active ( #8515 )
...
* add visibilitychange listener
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* restore event listener mock
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-06 11:33:09 +02:00
Kerry
2c19d286ed
Eslint - require copyright header rule ( #8514 )
...
* bump eslint plugin to 0.5.2
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add rule
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add missing copyright headers
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix comment order
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-06 09:09:28 +00:00
Germain
8080c2cc04
Remove experimental threads disclaimer ( #8445 )
2022-05-06 08:32:33 +00:00
Kerry
2e3185a4bc
test typescriptification - dialogs ( #8497 )
...
* /Users/kerry/code/matrix-react-sdk/test/components/views/dialogs/InteractiveAuthDialog-test.js -> tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test/components/views/dialogs/AccessSecretStorageDialog-test.js -> tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues in AccessSecretSstorageDialog-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update copyrights
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-06 10:25:18 +02:00
Michael Weimann
07542b0c40
Fix inviting users with undisclosed profiles ( #17269 )
...
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
Signed-off-by: Michael Weimann <michaelw@matrix.org>
2022-05-05 18:17:17 +02:00
Šimon Brandner
b12c002602
Order receipts with the most recent on the right ( #8506 )
2022-05-05 12:10:48 +00:00
Germain
3a63c88a11
Order new search dialog results by recency ( #8444 )
...
* Order new search dialog results by recency
* Add getLastTs tests
* Add sort rooms tests
2022-05-05 12:19:11 +01:00
Valere
07d8070037
Add raw error to analytics E2E error event context ( #8447 )
...
* Add raw error to analytics E2E error context
* Fix code style
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-04 21:46:03 -06:00
Robin
658ff4dfe6
Iterate video room designs in labs ( #8499 )
...
* Remove blank header from video room view frame
* Add video room option to space context menu
* Remove duplicate tooltips from face piles
* Factor RoomInfoLine out of SpaceRoomView
* Factor RoomPreviewCard out of SpaceRoomView
* Adapt RoomPreviewCard for video rooms
* "New video room" → "Video room"
* Add comment about unused cases in RoomPreviewCard
* Make widgets in video rooms mutable again to de-risk future upgrades
* Ensure that the video channel exists when mounting VideoRoomView
2022-05-04 17:02:06 -04:00
Michael Telatynski
5cdc8fb3fd
Fix reading of cached room device setting values ( #8491 )
...
* Fix reading of cached room device setting values
* Add tests
2022-05-04 15:54:59 +01:00
Kerry
ce3bc9dc07
test typescriptification - EventListSummary ( #8493 )
...
* test/components/views/elements/EventListSummary-test.js -> tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add user mocks util
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-04 16:37:41 +02:00
Kerry
5cece10552
test typescriptification - Permalinks ( #8481 )
...
* test/utils/permalinks/Permalinks-test.js -> test/utils/permalinks/Permalinks-test.ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues in Permalinks
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-04 11:29:13 +02:00
Kerry
3d0045dab5
Test typescriptification - Terms/ScalarAuthClient ( #8480 )
...
* test/Terms-test.js -> test/Terms-test.tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues in Terms-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test/ScalarAuthClient-test.js -> test/ScalarAuthClient-test.ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* ts fixes in ScalarAuthClient-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-03 15:09:07 +00:00
Michael Telatynski
f29ef04751
Fix race conditions around threads ( #8448 )
2022-05-03 14:25:08 +01:00
Kerry
12af3038a8
fix message indent in thread view ( #8462 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-03 13:51:50 +02:00
Kerry
c5633a24fe
Live location sharing: don't group beacon info with room creation summary ( #8468 )
...
* dont group beacon info with room creation summary
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove debugs
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-03 09:04:47 +00:00
Kerry
3b1e715854
Live location sharing: remove geoUri logs ( #8465 )
...
* remove geoUri logs
Signed-off-by: Kerry Archibald <kerrya@element.io>
* Update src/components/views/location/Map.tsx
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-03 08:29:43 +00:00
Kerry
f280fab47d
test typescriptification - ForwardDialog ( #8469 )
...
* test/components/views/dialogs/ForwardDialog-test.js -> tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues in ForwardDialog
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove unused stub-component
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-03 08:22:38 +00:00
Robin
1c70696b10
Don't linkify code blocks ( #7859 )
...
* Don't linkify code blocks
Signed-off-by: Robin Townsend <robin@robin.town>
* Put the linkify ignoreTags option in the right place
Signed-off-by: Robin Townsend <robin@robin.town>
* Add code to list of ignored linkification tags as well
Signed-off-by: Robin Townsend <robin@robin.town>
* Test that code blocks skip linkification
Signed-off-by: Robin Townsend <robin@robin.town>
* Move test to the right spot
Signed-off-by: Robin Townsend <robin@robin.town>
* Use a snapshot instead for test
Signed-off-by: Robin Townsend <robin@robin.town>
2022-05-03 00:26:37 +00:00
Janne Mareike Koschinski
3e31fdb6a7
read receipts: improve tooltips to show names of users ( #8438 )
2022-05-02 11:46:11 +02:00
Kerry
4a04be6d1c
Test typescriptification continued ( #8327 )
...
* test/utils/MegolmExportEncryption-test.js -> test/utils/MegolmExportEncryption-test.ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test/utils/ShieldUtils-test.js - test/utils/ShieldUtils-test.ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* type fixes for ShieldUtils-test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test/DecryptionFailureTracker-test.js -> test/DecryptionFailureTracker-test.ts
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove unsupported assertion failure messages
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues in DecryptionFailureTracker
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add mock restores
Signed-off-by: Kerry Archibald <kerrya@element.io>
* newline
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove commented decriptionfailuretracker code and test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* make should aggregate error codes correctly pass
Signed-off-by: Kerry Archibald <kerrya@element.io>
* cheaters types in MegolmExportEncryption
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* Revert "fix ts issues in DecryptionFailureTracker"
This reverts commit 1ae748cc51088d60722320dbefae04a62310e2e1.
Signed-off-by: Kerry Archibald <kerrya@element.io>
* Revert "remove unsupported assertion failure messages"
This reverts commit 7bd93d075c4d8d45befcbfd59c889782c9a44b48.
* Revert "test/DecryptionFailureTracker-test.js -> test/DecryptionFailureTracker-test.ts"
This reverts commit 1670025bd2af9a355c2761998202f602d61f242e.
* revert change to DecryptionFailureTracker
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-05-02 07:57:35 +00:00
Šimon Brandner
3a245a0cbe
Fix jump to bottom button being always displayed in non-overflowing timelines ( #8460 )
2022-05-01 19:38:36 -06:00
Emmanuel
d294dad04d
fix timeline search with empty text box should do nothing ( #8262 )
...
* fix timeline search with empty text box should do nothing
* test SearchBar component
* fix lint error
* Update SearchBar-test.tsx
Co-authored-by: Travis Ralston <travisr@matrix.org>
2022-05-02 01:09:59 +00:00
Kerry
e233cf5061
Live location sharing: fix safari timestamps pt 2 ( #8443 )
...
* handle safari cocoa core data timestamps
Signed-off-by: Kerry Archibald <kerrya@element.io>
* actually fix safari timestamp issue properly
Signed-off-by: Kerry Archibald <kerrya@element.io>
* actually fix safari timestamp issue properly
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-29 09:12:28 +00:00
Kerry
c4e988f406
increase geolocation timeout options to more realistic values ( #8439 )
...
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-28 15:51:47 +01:00
Kerry
472222c195
LLS: error handling on stopping beacon ( #8406 )
...
* shared stopping error state for timeline, maxi and room warnign
Signed-off-by: Kerry Archibald <kerrya@element.io>
* check for stopping errors in roomlist share warning
Signed-off-by: Kerry Archibald <kerrya@element.io>
* lint
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test stopping errors in OwnBeaconStore
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update LeftPanelLiveShareWarning tests for stopping errors
Signed-off-by: Kerry Archibald <kerrya@element.io>
* reinstate try/catch for stopping beacons in create
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove unnecessary and buggy beacon stopping on creation
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-28 12:03:51 +00:00
Kerry
ecd7d8b5e8
Unit test typescriptification - MKeyVerificationConclusion ( #8435 )
...
* test/components/views/messages/MKeyVerificationConclusion-test.js -> tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* ts fixes
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add missing copyright
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-28 11:44:04 +00:00
Kerry
699a9aeaaf
LLS: expose way to enable live sharing labs flag from location dialog ( #8416 )
...
* add state for waiting for labs flag
Signed-off-by: Kerry Archibald <kerrya@element.io>
* add enable live share component
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test enabling live share labs flag
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-28 13:37:20 +02:00
Kerry
1127db0514
Unit test typescriptification - TextualBody ( #8433 )
...
* test/components/views/messages/TextualBody-test.js -> tsx
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix ts issues in textualbody
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove type-removing context wrapper, fix more
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-28 09:32:50 +00:00
Michael Telatynski
8baa46b0dd
Fix baseline misalignment of thread panel summary by deduplication ( #8413 )
2022-04-27 18:10:27 +01:00
Michael Telatynski
83ab266533
Fix editing of non-html replies ( #8418 )
2022-04-27 10:43:10 +02:00
Michael Telatynski
a70f11704f
Don't form continuations on either side of a thread root ( #8408 )
2022-04-26 08:30:36 +00:00
James Salter
e3735311ab
Check updated is === the new version in accordance with new behaviour ( #8407 )
2022-04-25 16:52:50 +00:00
Kerry
8c6786bad6
LLS: rename wireError ( #8401 )
...
* rename wireError in ownbeaconstore to locationPublishError
Signed-off-by: Kerry Archibald <kerrya@element.io>
* rename getLiveBeaconIdsWithWireError -> getLiveBeaconIdsWithLocationPublishError
Signed-off-by: Kerry Archibald <kerrya@element.io>
* rename wire error variables in components
Signed-off-by: Kerry Archibald <kerrya@element.io>
* new snapshots for new test names
Signed-off-by: Kerry Archibald <kerrya@element.io>
* fix bad capitalisation on onResetLocationPublishError
Signed-off-by: Kerry Archibald <kerrya@element.io>
* missed variable
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-25 12:44:18 +00:00
Robin
6bfe0436e5
Fix infinite loop when pinning/unpinning persistent widgets ( #8396 )
...
Pinning or unpinning a persistent widget, such as Jitsi, could cause the
PiP view and the app drawer to fight for control over the widget, since
the PiP view never realized that it was supposed to relinquish control.
This was due to a race between the WidgetLayoutStore update and the
AppTile lifecycle tracking update.
2022-04-25 08:29:54 -04:00
Robin
2a396a406d
Stick connected video rooms to the top of the room list ( #8353 )
2022-04-22 08:17:31 -04:00
Kerry
988d300258
Live location sharing: only share to beacons created on device ( #8378 )
...
* create live beacons in ownbeaconstore and test
Signed-off-by: Kerry Archibald <kerrya@element.io>
* more mocks in RoomLiveShareWarning
Signed-off-by: Kerry Archibald <kerrya@element.io>
* extend mocks in components
Signed-off-by: Kerry Archibald <kerrya@element.io>
* comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
* remove another comment
Signed-off-by: Kerry Archibald <kerrya@element.io>
* extra ? hedge in roommembers change
Signed-off-by: Kerry Archibald <kerrya@element.io>
* listen to destroy and prune local store on stop
Signed-off-by: Kerry Archibald <kerrya@element.io>
* tests
Signed-off-by: Kerry Archibald <kerrya@element.io>
* update copy pasted copyright to 2022
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-22 12:05:36 +00:00
Kerry
a3a7c60dd7
LLS: Remove beacon info illegal replace relation ( #8390 )
...
* dont apply illegal replace relation to beacon_info event
Signed-off-by: Kerry Archibald <kerrya@element.io>
* only display tiles for beacon infos with live prop
Signed-off-by: Kerry Archibald <kerrya@element.io>
* copyrights
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-22 11:38:27 +00:00
Michael Telatynski
bbe0c945d3
Fix regression around haveRendererForEvent for hidden events ( #8379 )
2022-04-21 16:57:08 +00:00
Kerry
399ac618c7
LLS: fix jumpy maximised map ( #8387 )
...
* add maxzoom to map fit bounds
Signed-off-by: Kerry Archibald <kerrya@element.io>
* take snapshot of bounds at center on dialog open
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-21 18:56:11 +02:00
Kerry
73e8387799
test functional EventUtils ( #8386 )
...
* extract poll event test util
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test isContentActionable
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test canEditContent
Signed-off-by: Kerry Archibald <kerrya@element.io>
* test functional eventutils
Signed-off-by: Kerry Archibald <kerrya@element.io>
* copyrights
Signed-off-by: Kerry Archibald <kerrya@element.io>
2022-04-21 18:14:10 +02:00
Robin
c83ad1faa7
Add local echo of connected devices in video rooms ( #8368 )
2022-04-21 07:41:38 -04:00