Commit graph

1080 commits

Author SHA1 Message Date
Jorge Martin Espinosa
aedbce8e8d
Add logging to help debug forced logout issues (#3208)
* Add logging to help debug forced logout issues

* Use tags instead of manually adding the values to the logs.

- Also add extension functions to easily get anonymized tokens from `Session`/`SessionData`.

* Make sure only 1 operation related to token persistence can run at the same time
2024-07-18 13:16:20 +00:00
ganfra
a1987168ca
Merge pull request #3186 from element-hq/feature/fga/investigate_performance_issue
Performance : improve time to open a room.
2024-07-17 19:18:03 +02:00
Benoit Marty
0ddc306f01
Merge pull request #3206 from element-hq/feature/bma/updateGrammar
Update grammar on Matrix Ids to be more spec compliant and render error instead of infinite loading in room member list screen
2024-07-17 18:20:46 +02:00
ganfra
f08d30bb62 Performance : call roomFactory.destroy() 2024-07-17 17:23:15 +02:00
ganfra
7fab94fdd7 Performance : rename RustRoomObjects to RustRoomReferences 2024-07-17 17:22:56 +02:00
ganfra
5e6bcbd7ac Performance : do not trigger back pagination when opening room. 2024-07-17 15:49:11 +02:00
ganfra
ef12408b6e Performance : add cache on roomListItem and fullRoom 2024-07-17 14:45:14 +02:00
Benoit Marty
d6c99870f9 Be more lenient on Matrix pattern to support existing rooms in the wild (will fix crash on debug build). 2024-07-17 10:08:25 +02:00
Benoit Marty
67e09295de Still need to support both eventId legacy and v4 2024-07-16 18:40:03 +02:00
Benoit Marty
79d29d680b Add extra test for room alias. 2024-07-16 18:25:20 +02:00
Benoit Marty
5ae4668da5 No need to make the block optional. 2024-07-16 18:23:25 +02:00
Benoit Marty
52900076bd Add test on MatrixPatterns functions. 2024-07-16 18:21:02 +02:00
Benoit Marty
792667c9a4 Iterate on MatrixPatterns. 2024-07-16 18:06:18 +02:00
ganfra
181a7a0718
Merge pull request #3202 from element-hq/renovate/org.matrix.rustcomponents-sdk-android-0.x
Update dependency org.matrix.rustcomponents:sdk-android to v0.2.32
2024-07-16 18:01:07 +02:00
renovate[bot]
530894e875 Update dependency org.matrix.rustcomponents:sdk-android to v0.2.32 2024-07-16 17:22:13 +02:00
Benoit Marty
d9599a239c
Merge pull request #3203 from element-hq/feature/bma/clearNotificationWhenMarkAsRead
Clear existing notification when a room is marked as read
2024-07-16 14:48:36 +02:00
Jorge Martin Espinosa
d626660023
Fix crash in the room list after a forced log out in background (#3180) 2024-07-16 11:17:04 +00:00
Benoit Marty
85ceb0296c When user manually mark a room as read, also dismiss the notifications for this room. 2024-07-16 13:10:30 +02:00
Jorge Martin Espinosa
2ff5fa67fc
Restore intentional mentions in the markdown/plain text editor (#3193)
* Restore intentional mentions in the markdown/plain text editor

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-07-15 18:27:59 +02:00
ganfra
c508c8bdd0 Performance : subscribe to timeline items only when necessary 2024-07-12 18:11:36 +02:00
Jorge Martin Espinosa
5944f112fb
Subscribe to RoomListItems in the visible range (#3169)
* Subscribe to `RoomListItems` in the visible range

This ensures the room list items always have updated info.
2024-07-11 10:54:56 +02:00
Jorge Martin Espinosa
0be7058416
Unify the way we decide whether a room is a DM or a group room (#3100)
* Add centralised 'room is DM' check

Also add extension functions for `MatrixRoom` and `MatrixRoomInfo`.

* Use the centralised method and extension functions through the app, including:

- Room list.
- Room details screen.
- Invites.
- Notifications.

Replace most `isDirect` usages with `isDm`.

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-07-10 16:28:46 +00:00
renovate[bot]
68efc918ba
Update dependency org.matrix.rustcomponents:sdk-android to v0.2.31 (#3145)
* Update dependency org.matrix.rustcomponents:sdk-android to v0.2.31

* Use new Rust client side sorting API

* Make `RoomListEntriesUpdate.describe()` an extension function

* Remove `RoomListSummary.Filled` and `RoomListSummary.Empty`

* Fix icon sizes to pass the lint checks

* Update screenshots

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2024-07-05 15:25:42 +00:00
ganfra
c8a01e38f1 Bugfix : avoid potential NPE on verification service. 2024-07-04 14:51:14 +02:00
Benoit Marty
37eaa5e094
Merge pull request #3127 from element-hq/feature/bma/elementWellKnown
Let the SDK retrieve and parse Element well known content
2024-07-02 17:16:06 +02:00
Benoit Marty
5529fcc520 Inject constructor. 2024-07-02 13:35:26 +02:00
Benoit Marty
8ec283f2ca Use SDK to get Element Wellknown content. 2024-07-02 13:28:26 +02:00
ganfra
82df03fc31 Timeline : re-enable edition of local echo 2024-07-02 11:42:36 +02:00
Benoit Marty
6531a39b5a Introduce UserServerResolver. 2024-07-02 10:22:56 +02:00
Benoit Marty
a4457da213 Remove dead code. 2024-07-02 10:20:25 +02:00
ganfra
b46f47fde3
Merge pull request #3119 from element-hq/renovate/org.matrix.rustcomponents-sdk-android-0.x
Update dependency org.matrix.rustcomponents:sdk-android to v0.2.29
2024-07-01 18:15:03 +02:00
ganfra
0348d030a7 Rust sdk : handle api changes (draft and edit) 2024-07-01 17:50:29 +02:00
Benoit Marty
6c4e7ec85e
Merge pull request #3025 from element-hq/feature/bma/elementEnterprise
Element enterprise (EE) foundations
2024-07-01 17:08:40 +02:00
Benoit Marty
9196adb8b0 Remove default value for languageTag and theme. 2024-07-01 14:30:18 +02:00
Jorge Martín
f421f94639 Fix session verification incorrectly displaying as 'not verified' when the user opened the app with no network connection.
It turns out `encryptionService.verificationState()` runs a network request that will cause a deadlock when it fails.

Also fixed another deadlock that caused the screen to remain blank sometimes after logging in, because DataStore got stuck when checking the `skipVerification` state for some reason I don't fully understand.
2024-06-28 11:35:08 +02:00
ganfra
e9c995f96d Auth : fix restore session when there is no network. 2024-06-27 18:05:47 +02:00
Jorge Martin Espinosa
4904c4b751
Bump Rust SDK version and adapt our code (#3068)
* Use the new SDK version
* Adapt the authentication service to the new Rust SDK APIs
* Remove `Timeline.enterSpecialMode(...)` as it's no longer necessary
2024-06-27 09:44:14 +00:00
ganfra
1b56d1b97a Merge branch 'develop' into feature/fga/draft_support 2024-06-26 15:22:00 +02:00
ganfra
644b425d71 Draft : code cleanup 2024-06-26 12:15:00 +02:00
Benoit Marty
a9fb4b95ce Add isEnterpriseBuild to BuildMeta 2024-06-26 11:59:45 +02:00
ganfra
e68684815d Draft : makes sure all existing tests passes 2024-06-25 15:17:18 +02:00
Benoit Marty
e999120864 Let role and permissions screens works for invited room members too. 2024-06-24 13:21:46 +02:00
ganfra
6ac7ab84ce Draft : branch reply mode 2024-06-21 12:40:16 +02:00
ganfra
5597a1743a Reply : refactor so we can use ReplyToDetails in Composer and Timeline 2024-06-21 12:23:17 +02:00
Benoit Marty
ac6e56fead Use heroes only for DMs. #1538 2024-06-20 14:35:12 +02:00
ganfra
f24e87faf1 Timeline : introduce loadReplyDetails api 2024-06-20 13:07:49 +02:00
Benoit Marty
a199a8605f Add heroes to RoomSummaryDetails 2024-06-20 11:59:38 +02:00
ganfra
9aa82b42fd Draft : introduce DraftService and start using it. 2024-06-20 11:28:07 +02:00
Benoit Marty
14062c687e Map RoomHero to MatrixRoomInfo. 2024-06-19 18:18:59 +02:00
ganfra
dc331640f9 Draft : expose new apis from sdk 2024-06-19 15:38:01 +02:00