Commit Graph
17320 Commits
Author SHA1 Message Date
Janne Mareike KoschinskiandGitHub 55d9dbf00d Fix thread list jumping back down while scrolling (#9606)
* Fix timeline jumping after every thread update

* Add tests to prevent this from occuring again
2022-11-25 13:22:06 +01:00
Michael WeimannandGitHub 5c60211d76 Fix login screen style (#9611) 2022-11-25 08:49:11 +01:00
Florian DurosandGitHub 7c63d52500 Add placeholder for rich text editor (#9613)
* Add placeholder for rich text editor
2022-11-24 10:31:56 +00:00
Michael TelatynskiandGitHub 8b8d24c24c Fix regression with TimelinePanel props updates not taking effect (#9608)
* Fix regression with TimelinePanel props updates not taking effect

* Add test
2022-11-24 09:51:21 +00:00
Michael WeimannandGitHub a8e15ebe60 Add voice broadcast playback pip (#9603) 2022-11-24 09:08:41 +01:00
GermainandGitHub 40cbee60db Consolidate public room search experience (#9605) 2022-11-22 15:05:09 +00:00
Michael WeimannandGitHub e5ce6d7800 New password reset flow (#9581) 2022-11-22 07:58:37 +01:00
Michael WeimannandGitHub 3f74ac37e8 Refactor PipView + fix strict errors (#9604) 2022-11-22 07:57:38 +01:00
2393510a7f Fix getRelationsForEvent under TypeScript strict mode (#9558)
* Fix getRelationsForEvent tsc strictness

* Use shared type for GetRelationsForEvent

* Fix lint

* Add alternative type

* getRelationsForEvent is not required

* Relations are optional

* Reactions are optional

* We expect relations in these tests

* Add more protection if the eventID is not defined

* Allow null too

* Better test typing

* User ID is not necessary unless something is selected

* It's okay to [].includes(null)

* Null is as good as undefined here

* Null or undefined is good here

* We have some expectations for the tests

* The room and user can be undefined too

* Protec

* Reactions are optional

* Try match signatures

* Null or undefined

* More null or undefined

* Protec

* Fix typo (wrong variable)

* Remove optional params

See https://github.com/matrix-org/matrix-react-sdk/pull/9558#discussion_r1017515913

* Fix up last maaaaybe relevant lint

Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
2022-11-21 20:54:24 -07:00
Michael TelatynskiandGitHub 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
Michael WeimannandGitHub d699f5607b Add voice broadcast seek 30s forward/backward buttons (#9592) 2022-11-21 08:47:09 +01:00
KerryandGitHub caac059479 Device manager - add tooltip to device details toggle (#9594)
* add hide/show tooltip to dm details toggle

* use named export, update tests
2022-11-21 08:24:56 +13:00
kegsayandGitHub acdcda78f0 sliding sync: add lazy-loading member support (#9530)
* sliding sync: add lazy-loading member support

Also swap to `$ME` constants when referring to our own member event.

* Hook into existing LL logic when showing the MemberList

* Linting

* Use consts in js sdk not react sdk

* Add jest tests

* linting

* Store the room in the test

* Fix up getRoom impl

* Add MemberListStore

* Use the right context in MemberList tests

* Fix RightPanel-test

* Always return members even if we lazy load

* Add MemberListStore tests

* Additional tests
2022-11-18 19:05:00 +00:00
Michael TelatynskiandGitHub d626f71fdd Extract Search handling from RoomView into its own Component (#9574)
* Extract Search handling from RoomView into its own Component

* Iterate

* Fix types

* Add tests

* Increase coverage

* Simplify test

* Improve coverage
2022-11-18 16:40:22 +00:00
owi92andGitHub d705c864ba Limit formatting bar offset to top of composer (#9365)
* Limit formatting bar offset to top of composer

When highlighting larger sections in the composer, the formatting bar
would scroll up and cover a previous post. This commit makes sure
the bar's offset will be limited to the top of the composer.

It should also make the code slightly more maintainable by getting the bar height
from the DOMrect and basing the offset on that height instead of hardcoding it.

Resolves: #12359
2022-11-18 14:28:11 +01:00
Michael TelatynskiandGitHub 590b845f3f Remove all usages of UNSAFE_* React methods (#9583) 2022-11-18 09:22:43 +00:00
GermainandGitHub 38dbe8ed33 Migrate some tests to React Testing Library (#9584) 2022-11-18 09:16:11 +00:00
Michael WeimannandGitHub ef548a4843 Add live voice broadcast indicator to user menu (#9590) 2022-11-18 08:36:20 +01:00
KerryandGitHub c3de8cbe6b update device manager verified device learn more copy (#9589) 2022-11-18 11:00:36 +13:00
GermainandGitHub c10339ad68 Make clear notifications work with threads (#9575) 2022-11-15 10:27:13 +00:00
Michael TelatynskiandGitHub e66027cd0c Deduplicate string compare utility (#9579) 2022-11-15 10:20:36 +00:00
Michael WeimannandGitHub 436146105e Implement voice broadcast device selection (#9572) 2022-11-15 10:02:40 +01:00
Florian Duros 45d53d3404 Update @matrix-org/matrix-wysiwyg dependency 2022-11-14 14:12:09 +01:00
HanadiandGitHub 212233cb0b Fix: inline links selecting radio button (#9543)
* fix: inline link selecting radio button
2022-11-14 09:11:37 +00:00
Mahdi BagvandandGitHub 7c33fc6cf6 fix wrong error message in registration when phone number threepid is in use. (#9571) 2022-11-13 16:58:40 +00:00
GermainandGitHub e8d4fbb8ff Fix missing avatar for show current profiles (#9563) 2022-11-11 16:02:01 +00:00
GermainandGitHub 1dbf9c205e fix read receipts trickling down correctly (#9567) 2022-11-11 09:39:35 +00:00
Michael WeimannandGitHub fca6ff271c Extract requestMediaPermissions (#9568) 2022-11-11 10:38:51 +01:00
GermainandGitHub ee13e23b15 Resilience fix for homeserver without thread notification support (#9565)
* Notification state resilience

* TypeScript strict fixes

* Add tests
2022-11-10 18:01:19 +00:00
Arne WilkenandGitHub 8ebdcab7d9 Change "None" to "Off" in notification options (#9539) 2022-11-10 12:39:14 +00:00
Michael WeimannandGitHub f6347d24ef Show time left for voice broadcast recordings (#9564) 2022-11-10 10:53:49 +00:00
Michael TelatynskiandGitHub 962e8e0b23 Differentiate download and decryption errors when showing images (#9562) 2022-11-10 09:27:20 +00:00
Michael WeimannandGitHub abec724387 Add voice broadcast pre-recoding PiP (#9548) 2022-11-10 09:38:48 +01:00
László VáradyandGitHub afdf289a78 Advanced audio processing settings (#8759)
Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
Fixes https://github.com/vector-im/element-web/issues/6278
Fixes undefined
2022-11-09 20:14:55 +00:00
Michael TelatynskiandGitHub da779531f1 Close context menu when a modal is opened to prevent user getting stuck (#9560) 2022-11-09 15:33:09 +00:00
Michael TelatynskiandGitHub 848adfdc10 Add way to create a user notice via config.json (#9559) 2022-11-09 10:50:01 +00:00
GermainandGitHub 3f3005a3ca Always use current profile on thread events (#9524) 2022-11-08 10:58:26 +00:00
Michael TelatynskiandGitHub 3747464b41 Make SonarCloud happier (#9545)
* Make SonarCloud happier

* i18n

* Iterate

* Update AddExistingToSpaceDialog.tsx

* Update SlashCommands.tsx
2022-11-07 13:45:34 +00:00
Michael TelatynskiandGitHub 77764d80bc Fix regressions around media uploads failing and causing soft crashes (#9549) 2022-11-07 11:56:43 +00:00
Michael TelatynskiandGitHub be5a8ca3b9 Fix notif panel exception around accessing roomId of undefined (#9546) 2022-11-04 16:40:02 +00:00
Florian DurosandGitHub 5ca9accce2 Improve design of the rich text editor (#9533)
New design for rich text composer
2022-11-04 15:36:50 +00:00
Florian DurosandGitHub d744de04c1 Merge branch 'develop' into fix-leave-space-at-bottom 2022-11-03 14:33:29 +01:00
5f540eb25c Update types to match js-sdk --strict mode (#9528)
Co-authored-by: Michael Weimann <michaelw@matrix.org>
2022-11-03 12:50:07 +00:00
3330d5a634 Enable user to zoom beyond image size (#5949)
* Enable user to zoom beyond image size and add cleanup functions to image view

Signed-off-by: Jaiwanth <jaiwanth2011@gmail.com>

* Modify cursor icon and display zoom in and out buttons for smaller images

* Fix indentation

Signed-off-by: Jaiwanth <jaiwanth2011@gmail.com>
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
Co-authored-by: Travis Ralston <travisr@matrix.org>
Co-authored-by: Kerry <kerrya@element.io>
2022-11-03 12:03:21 +00:00
Hanadi92 89d83faaf6 fix: leave space at bottom of space context menu 2022-11-02 22:41:54 +01:00
Hugh Nimmo-SmithandGitHub f05cc5d8f3 Refactor + improve test coverage for QR login (#9525) 2022-11-02 10:51:20 +00:00
Michael WeimannandGitHub 9096bd82d6 Extract PlaybackInterface (#9526) 2022-11-02 09:46:42 +01:00
kegsayandGitHub dcf497d013 sliding-sync: spider all rooms on the user's account for search (#9514)
* sliding-sync: spider all rooms on the user's account for search

On startup, slowly accumulate room metadata for all rooms on the
user's account. This is so we can populate the local search cache
with enough data for it to function, obviating the need to have
separate code paths for sliding sync searches.

This will allow spotlight search to work with slow/no network
connectivity, though clicking on the room will still require a
round trip.

This is an explicit request from @ara4n to improve the snapiness
of room searches, despite the unbounded bandwidth costs requesting
all N rooms on the user's account.

* Comments and tweak defaults

* Review comments; remove SS search code

* bugfix: use setListRanges once the list has been set up

If we don't, then we send needless extra data and can cause
bugs because setList will wipe the index->room_id map, which
trips up SlidingRoomListStore.
2022-11-01 10:27:03 +00:00
GermainandGitHub 9b644844da Fix NotificationBadge unsent color (#9522) 2022-10-31 09:45:02 +00:00
d92fdc1f5b Loading threads with server-side assistance (#9356)
* Fix bug with message context menu
* fix bug where ThreadSummary failed if no last reply is available
* Fix relations direction API
* Use same API for threads as for any other timeline
* Determine if event belongs to thread on jumping to event
* properly listen to thread deletion
* Add thread redaction tests
* Add fetchInitialEvent tests
* Paginate using default TimelinePanel behaviour
* Remove unused threads deleted code

Co-authored-by: Germain <germain@souquet.com>
Co-authored-by: Germain <germains@element.io>
2022-10-28 13:48:15 +02:00