Johannes Marbach
de864f15bc
Fix strict mode issues
2023-02-13 20:25:43 +01:00
Johannes Marbach
d0e9331f07
Merge branch 'develop' into johannes/find-myself
2023-02-13 20:16:04 +01:00
Michael Telatynski
da7aa4055e
Conform more of the code base to strict null checking ( #10147 )
...
* Conform more of the code base to strict null checking
* More strict fixes
* More strict work
* Fix missing optional type
* Iterate
2023-02-13 17:01:43 +00:00
Michael Telatynski
61a63e47f4
Comply with noImplicitAny ( #9940 )
...
* Stash noImplicitAny work
* Stash
* Fix imports
* Iterate
* Fix tests
* Delint
* Fix tests
2023-02-13 11:39:16 +00:00
Michael Weimann
a6eee32c66
Examine all m.direct rooms to find a DM as fallback ( #10127 )
2023-02-13 08:46:53 +01:00
Johannes Marbach
f842e319de
Merge branch 'develop' into johannes/find-myself
2023-02-08 16:42:14 +01:00
Kerry
583050c8c0
Render poll end events in timeline ( #10027 )
...
* wip
* remove dupe
* use poll model relations in all cases
* update mpollbody tests to use poll instance
* update poll fetching login in pinned messages card
* add pinned polls to room polls state
* add spinner while relations are still loading
* handle no poll in end poll dialog
* strict errors
* render a poll body that errors for poll end events
* add fetching logic to pollend tile
* extract poll testing utilities
* test mpollend
* strict fix
* more strict fix
* strict fix for forwardref
* update poll test utils
* implicit anys
* tidy and add jsdoc
2023-02-07 21:12:39 +00:00
Johannes Marbach
c5fa3fc796
Merge branch 'develop' into johannes/find-myself
2023-02-07 20:35:06 +01:00
Michael Telatynski
35d222bac6
Add @typescript-eslint/no-base-to-string ( #10091 )
2023-02-07 10:08:10 +00:00
Kerry Archibald
06d8755f6b
add tests for geolocate self on map views
2023-02-07 16:51:58 +13:00
Johannes Marbach
93682e9d13
Further type fixes
2023-02-04 20:29:50 +01:00
Johannes Marbach
a3d09937d6
Fix types
2023-02-04 20:22:03 +01:00
Johannes Marbach
e5a7e83b48
Add option to find own location in map views
2023-02-04 19:58:19 +01:00
Michael Telatynski
9743852380
Improve typescript null checking in places ( #10073 ( #10073
...
* Improve typescript null checking in places
* Iterate
* Fix Timer.ts
2023-02-03 15:27:47 +00:00
Clark Fischer
53a9b6447b
Fix MessageEditHistoryDialog crashing on complex input ( #10018 )
...
* noImplicitAny fixes for MessageDiffUtils
Signed-off-by: Clark Fischer <clark.fischer@gmail.com >
* Add tests for MessageDiffUtils
Adds mostly snapshot tests for MessageDiffUtils to guarantee consistent
behavior.
Signed-off-by: Clark Fischer <clark.fischer@gmail.com >
* Strict mode fixes for MessageDiffUtils
Gets `MessageDiffUtils` to pass under `tsc --strict`.
Fixes https://github.com/vector-im/element-web/issues/23665 - no longer errors,
though it still isn't correct.
Signed-off-by: Clark Fischer <clark.fischer@gmail.com >
* Remove obsolete DiffDOM workaround
Workaround is no longer necessary as of DiffDOM 4.2.1
See https://github.com/fiduswriter/diffDOM/issues/90
Signed-off-by: Clark Fischer <clark.fischer@gmail.com >
---------
Signed-off-by: Clark Fischer <clark.fischer@gmail.com >
2023-01-31 09:55:20 +00:00
Clark Fischer
4c1e4f5127
Fix "[object Promise]" appearing in HTML exports ( #9975 )
...
Fixes https://github.com/vector-im/element-web/issues/24272
2023-01-30 14:31:32 +00:00
Germain
3e2bf5640e
Update to supportsThreads ( #9907 )
2023-01-30 12:20:11 +00:00
Michael Weimann
ed06ed0185
Fix seekbar position for zero length audio ( #9949 )
2023-01-23 17:28:31 +01:00
Michael Weimann
fe0d3a7668
Error handling if broadcast events could not be sent ( #9885 )
2023-01-17 07:57:59 +00:00
Travis Ralston
badb2c4b27
Use js-sdk imports for poll event types instead of events-sdk ( #9904 )
...
* Use js-sdk imports for poll event types instead of events-sdk
* Attempt to appease some tsc --strict errors
* Manually create poll response in cypress test
2023-01-13 10:02:33 -07:00
Michael Telatynski
030b7e90bf
Enable @typescript-eslint/explicit-function-return-type in /src ( #9788 )
...
* Enable `@typescript-eslint/explicit-member-accessibility` on /src
* Prettier
* Enable `@typescript-eslint/explicit-function-return-type` in /src
* Fix types
* tsc strict fixes
* Delint
* Fix test
* Fix bad merge
2023-01-12 13:25:14 +00:00
Germain
d4f247d1fe
Merge branch 'develop' into gsouquet/threads-forceenablelabsflag
2023-01-11 11:51:57 +00:00
Kerry
b1c32995c6
Device manager - prune client information events after remote sign out ( #9874 )
...
* prune client infromation events from old devices
* test client data pruning
* remove debug
* strict
* Update src/components/views/settings/devices/useOwnDevices.ts
Co-authored-by: Michael Weimann <michaelw@matrix.org >
* improvements from review
Co-authored-by: Michael Weimann <michaelw@matrix.org >
2023-01-10 07:01:50 +01:00
Germain
7ca1b385d9
Force enable threads labs flag
2023-01-09 12:38:19 +00:00
Michael Weimann
f34c1609c3
Disable bubbles for broadcasts ( #9860 )
2023-01-05 12:33:28 +01:00
Michael Weimann
488a08a25e
Allow reactions for broadcasts ( #9856 )
2023-01-05 08:40:09 +01:00
alunturner
432ce3ca31
Improve switching between rich and plain editing modes ( #9776 )
...
* allows switching between modes that retains formatting
* updates rich text composer dependency to 0.13.0 (@matrix-org/matrix-wysiwyg)
* improves handling of enter keypresses when ctrlEnterTosend setting is true in plain text editor
* changes the message event content when using the new editor
* adds tests for the changes to the plain text editor
2023-01-04 12:57:09 +00:00
grimhilt
6ad70b0565
Fix export with attachments on formats txt and json ( #9851 )
...
* set file extension to .zip when needed
* Apply prettier formatting
Co-authored-by: grimhilt <grimhilt@users.noreply.github.com >
2023-01-03 07:53:33 +01:00
Michael Weimann
064a5ad422
Show regular avatar for broadcasts ( #9835 )
2022-12-29 10:03:24 +00:00
Germain
e9224f6fce
Add mark as read option in room setting ( #9798 )
2022-12-22 13:18:38 +00:00
Michael Weimann
b81582d045
Improve live voice broadcast detection by testing if the started event has been redacted ( #9780 )
2022-12-22 10:37:07 +00:00
renovate[bot]
af3715821b
Update dependency maplibre-gl to v2 ( #9699 )
...
* Update dependency maplibre-gl to v2
* update types and mocks for maplibre 2.0
* prettier + strict fix
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Kerry Archibald <kerrya@element.io >
2022-12-18 23:17:15 +00:00
Michael Telatynski
f1e8e7f140
Enable @typescript-eslint/explicit-member-accessibility on /src ( #9785 )
...
* Enable `@typescript-eslint/explicit-member-accessibility` on /src
* Prettier
2022-12-16 12:29:59 +00:00
Michael Weimann
51554399fb
Implement broadcast message preview ( #9762 )
2022-12-16 11:01:16 +00:00
Kerry
aeb9f4373f
Device manager - use deleteAccountData to prune device manager client information events ( #9734 )
2022-12-14 04:59:23 +00:00
Germain
2d2755d145
🧵 Enable threads by default ( #9736 )
...
* Delabs threads
* remove threads reload when labs is toggled
* Fix ts strict
* fix rebase mistake
* remove .only
* fix pr comments
* re-introduce backwards compat
* Fix export test
* Fix SearchREsultTile test
* strict ts
2022-12-13 15:09:15 +00:00
Faye Duxovni
43f175892a
Fix Prettier errors that slipped past CI ( #9741 )
2022-12-12 15:43:29 -07:00
Michael Weimann
27c5b793e9
Merge branch 'develop' into weeman1337/prettier
2022-12-12 16:09:11 +01:00
Michael Weimann
57e1822add
Add voice broadcast ended message ( #9728 )
2022-12-12 16:03:56 +01:00
Michael Weimann
526645c791
Apply prettier formatting
2022-12-12 12:24:14 +01:00
Kerry
82ad8d5aa2
Snooze the bulk unverified sessions reminder on dismiss ( #9706 )
...
* test bulk unverified sessions toast behaviour
* unverified sessions toast text tweak
* only show bulk unverified sessions toast when current device is verified
* add Setting for BulkUnverifiedSessionsReminder
* add build config for BulkUnverifiedSessionsReminder
* add more assertions for show/hide toast, fix strict errors
* fix strict error
* add util methods for snoozing in local storage
* rename nag to reminder
* set and read snooze for toast
* test snooze
* remove debug
* strict fix
* remove unused code
2022-12-06 06:18:03 +00:00
renovate[bot]
8996bf0a7f
Update dependency filesize to v10 ( #9695 )
...
* Update dependency filesize to v10
* Update dependency filesize to v10
* Fix imports
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2022-12-01 23:55:24 +00:00
ElementRobot
5cbb748843
Upgrade dependencies ( #9249 )
...
* [create-pull-request] automated change
* Delint
* Hold @types/react* back
* Pin axe-core until we fix a11y issues
Co-authored-by: t3chguy <t3chguy@users.noreply.github.com >
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com >
2022-11-30 15:18:10 +00:00
Michael Telatynski
d258402186
Typescript updates ( #9658 )
...
* Typescript updates
* Update @types/node
* Fix more types
2022-11-30 11:32:56 +00:00
Michael Telatynski
d341c56b1f
Fix issues around up arrow event edit shortcut ( #9645 )
2022-11-29 14:55:48 +00:00
Germain
40cbee60db
Consolidate public room search experience ( #9605 )
2022-11-22 15:05:09 +00:00
Michael Telatynski
8c0d202df4
Enable tsc alwaysStrict, strictBindCallApply, noImplicitThis ( #9600 )
...
* Enable tsc alwaysStrict
* Enable tsc strictBindCallApply
* Enable tsc noImplicitThis
* Add d.ts
* Improve types
* Add ?
* Increase coverage
* Improve coverage
2022-11-21 11:24:59 +00:00
Germain
c10339ad68
Make clear notifications work with threads ( #9575 )
2022-11-15 10:27:13 +00:00
Michael Telatynski
e66027cd0c
Deduplicate string compare utility ( #9579 )
2022-11-15 10:20:36 +00:00
Michael Weimann
fca6ff271c
Extract requestMediaPermissions ( #9568 )
2022-11-11 10:38:51 +01:00