Commit Graph

5085 Commits

Author SHA1 Message Date
Benoit Marty
8e72ea4e7c Use presenter test extension 2025-11-06 15:38:43 +01:00
Benoit Marty
0c5912ded4 Small cleanup 2025-11-06 15:38:41 +01:00
Benoit Marty
bb93d6ff06 Always let the user try what they have entered, to get an explicit error if they continue 2025-11-06 15:38:40 +01:00
Benoit Marty
c397c8e2c3 Ensure user cannot select unsupported homeserver. In this case show the appropriate error (parity with iOS) 2025-11-06 15:38:39 +01:00
Benoit Marty
6006537bdc Remove A_HOMESERVER and A_HOMESERVER_OIDC from TestData and replace by local fun aMatrixHomeServerDetails(). 2025-11-06 15:38:37 +01:00
Benoit Marty
04584412f9 Fix test 2025-11-06 14:27:20 +01:00
Benoit Marty
6d252c0b20 MatrixAuthenticationService: remove fun getHomeserverDetails(): StateFlow<MatrixHomeServerDetails?>. The MatrixHomeServerDetails are now return by setHomeserver 2025-11-06 12:22:48 +01:00
Benoit Marty
c0800e102a Merge pull request #5679 from element-hq/feature/bma/saveChangeDialog
Extract save change dialog
2025-11-06 10:09:18 +01:00
Benoit Marty
37f10ced4a Merge pull request #5645 from element-hq/feature/bma/mutliAccountNotification
Improve rendering notification for multi account
2025-11-05 18:08:20 +01:00
ganfra
a33d4e8b42 Merge pull request #5668 from element-hq/feature/fga/space_settings
Space : prepare Space Settings screen
2025-11-05 16:18:09 +01:00
ganfra
f4ef9a0545 quality: use callback() method in nodes 2025-11-05 15:42:59 +01:00
Benoit Marty
7d696d542c Merge pull request #5677 from element-hq/feature/bma/loadingVerificationAction
Make sure we know the session verification state before showing the options to verify the session
2025-11-04 16:32:17 +01:00
Benoit Marty
e96cd9e28f Merge remote-tracking branch 'origin/develop' into feature/bma/mutliAccountNotification 2025-11-04 16:20:42 +01:00
Benoit Marty
c800f86b7c Merge pull request #5678 from element-hq/feature/bma/countAccounts
Introduce new query to count accounts
2025-11-04 16:17:10 +01:00
Benoit Marty
fad10f5756 Use SaveChangesDialog 2025-11-04 16:03:33 +01:00
Benoit Marty
57f3182e7d Use SaveChangesDialog 2025-11-04 15:59:00 +01:00
Benoit Marty
bfc13c37a9 Extract SaveChangesDialog to its own file 2025-11-04 15:58:59 +01:00
Jorge Martin Espinosa
015b497d5a Use the SDK Client to check whether a homeserver is compatible (#5664)
* Use the SDK `Client` to check whether a HS is compatible

* Remove usage of unused `WellKnown`, keep `ElementWellKnown`

* Make `HomeServerLoginCompatibilityChecker.check` return `true/false` values to distinguish non-valid homeservers from a failed check

* Use `inMemoryStore` and `serverNameOrHomeserverUrl`

* Do some cleanup of `isValid` and `isWellknownValid`

* Make the debounce for starting the search a bit higher, as checking for the homeservers seems more resource-intensive now
2025-11-04 15:43:00 +01:00
Benoit Marty
0367ae610c Session database: use the new count API. 2025-11-04 15:30:29 +01:00
Benoit Marty
a2b6561009 Make sure we know the session verification state before showing the option to verify the session. #5521 2025-11-04 12:19:09 +01:00
Benoit Marty
a1e270578a Merge pull request #5672 from element-hq/feature/bma/handleEvents
Always use the handleEvent(s) function the same way.
2025-11-04 11:20:22 +01:00
ganfra
71ef154eea quality: fix import in test 2025-11-03 20:27:37 +01:00
Benoit Marty
0743b56bc4 Always use the handleEvent(s) function the same way. 2025-11-03 18:49:00 +01:00
Benoit Marty
5b18f6f93e Code cleanup 2025-11-03 15:53:31 +01:00
Benoit Marty
bb28fd6e92 Forward Event error: Log error and use generic error dialog. 2025-11-03 15:18:12 +01:00
Benoit Marty
876f692f3f Rename MessagesEntryPointNode to MessagesEntryPoint.NodeProxy for consistency. We already have a NodeProxy. 2025-11-03 15:17:27 +01:00
ganfra
1ff48467c6 Merge branch 'develop' into feature/fga/space_settings 2025-11-03 15:02:28 +01:00
Jorge Martín
7421e6545c Pass around fromPinnedEvents so we can use it to decide whether to forward the event from the main timeline or the pinned events one 2025-11-03 14:43:57 +01:00
Jorge Martín
d373cbe8a7 Create PinnedEventsTimelineProvider, expose it in TimelineBindings 2025-11-03 14:43:18 +01:00
ElementBot
287a017739 Sync Strings from Localazy (#5662)
Co-authored-by: bmarty <3940906+bmarty@users.noreply.github.com>
2025-11-03 10:58:12 +01:00
ganfra
4097ff2626 feature(space) : some code clean up 2025-10-31 15:34:55 +01:00
ganfra
48d2696ba8 feature(space) : prepare LeaveSpace for navigation to Roles&Permissions 2025-10-31 15:32:30 +01:00
ganfra
f844007812 feature(space) : some renaming on Space nodes 2025-10-31 15:10:55 +01:00
ganfra
2d8f491cfd feature(space) : update some strings 2025-10-31 15:01:03 +01:00
ganfra
4c9b6100a7 feature(space) : iterate on SpaceSettings 2025-10-31 15:01:03 +01:00
ganfra
5f7fda2402 feature(space) : plumb up space settings screen 2025-10-31 15:01:03 +01:00
ganfra
c4b8227c58 feature(space) : starts space settings screen 2025-10-31 14:55:30 +01:00
Benoit Marty
e70d767183 Remove context(parentNode: Node) and provide the parent Node as a parameter. 2025-10-31 12:04:57 +01:00
Benoit Marty
fbecf8d34f Let DefaultNotificationDrawerManager use NotificationDisplayer instead of NotificationManagerCompat 2025-10-31 09:29:48 +01:00
Benoit Marty
031ca4f333 Notification: show userId in notification when several accounts are configured. 2025-10-31 09:25:01 +01:00
Benoit Marty
45400d70d2 Fix typo in package name. 2025-10-30 18:47:20 +01:00
Benoit Marty
187479849d Create Fake classes in test modules 2025-10-30 18:32:31 +01:00
Benoit Marty
0303ac502a More renaming 2025-10-30 16:32:54 +01:00
Benoit Marty
05c5f3c914 Use context parameter for the parentNode 2025-10-30 16:32:53 +01:00
Benoit Marty
566515ca88 Remove NodeBuilder to ensure that Params and Callback are always provided. 2025-10-30 16:32:52 +01:00
Benoit Marty
5197154f54 Ensure a Callback and only one is provided in the Plugin. Also reduce boilerplate code in Nodes. 2025-10-30 16:32:51 +01:00
Benoit Marty
596b7f00fc More renaming 2025-10-30 16:32:50 +01:00
Benoit Marty
09a18ad7ca Rename fun in Callback for clarity. 2025-10-30 16:32:48 +01:00
Jorge Martin Espinosa
45b5783b23 Display only valid emojis in recent emoji list (#5612)
* Create `:libraries:recentemojis` and move `AddRecentEmoji` and `GetRecentEmojis` there

- Make sure `GetRecentEmojis` won't return duplicate or invalid emojis.
- `ActionListPresenter` now handles merging suggested and recent emojis, not `ActionListView`.
2025-10-30 15:27:51 +00:00
Jorge Martin Espinosa
7facc40771 Split notifications for messages in threads (#5595)
* Separate thread notifications into their own notifications when the feature flag is enabled.

Otherwise, set the `threadId` to null so it'll behave as usual. It's done this way to avoid having to inject `FeatureFlagService` in several places.

* Add permalink navigation to threads from notifications, focusing on the latest event in the list of messages of the notification tapped

* Fix redactions in threads

* Clear notifications for a thread when visiting it

* Fix opening a thread happening twice, first because of the `openThreadId` value, then because of the `focusedEventId` one

* Make opening a room through a notification also focus on the latest event

* Add helper `NotificationCreator.messageTag` function

* Remove unused `ROOM_CALL_NOTIFICATION_ID`: `FOREGROUND_SERVICE_NOTIFICATION_ID`+ `ForegroundServiceType` is used instead

* Simplify `DefaultDeepLinkCreator`

* Make sure the main timeline focuses on the thread root id too when navigating to a thread

* Handle "Mark as read" action for thread notification, using `timeline.markAsRead`

* Log failures to mark rooms as read using the notification action

---------

Co-authored-by: Benoit Marty <benoit@matrix.org>
2025-10-30 15:15:00 +00:00