Commit graph

561 commits

Author SHA1 Message Date
Benoit Marty
3676bca042 Make extension isCritical a val instead of a fun. 2024-08-16 09:56:01 +02:00
Benoit Marty
faf1e7da9f Iterate on shield mapping and rendering
Also handle click on the timeline and information displayed on long click.
2024-08-14 17:24:11 +02:00
Benoit Marty
5d10b1fe85
Merge branch 'develop' into feature/valere/message_shields 2024-08-14 12:37:31 +02:00
ganfra
583625e4d4 Merge branch 'develop' into feature/fga/pinned_message_banner_logic 2024-08-07 16:05:41 +02:00
ganfra
5d2abd0350 timeline : allow rendering m.room.pinned_events 2024-08-06 17:28:23 +02:00
ganfra
34fd21f440 Pinned events : introduce pinnedEventsTimeline method. 2024-08-01 18:22:22 +02:00
ganfra
46f5115c0a Pinned events : clean up code 2024-07-30 16:40:18 +02:00
ganfra
210e2092cd Refactor userEventPermissions 2024-07-29 13:43:47 +02:00
ganfra
52a643f116 Pin : expose the new rust sdk apis 2024-07-29 12:50:35 +02:00
ganfra
0149007dd4 Timeline Action : refactor how it's computed and align with iOS 2024-07-26 18:20:03 +02:00
Valere
524f20bb40 Timeline UI | MessageShield Support 2024-07-25 10:01:27 +02:00
ganfra
d421a6c99b Merge branch 'develop' into feature/fga/room_preview_join_button_fallback 2024-07-24 16:34:35 +02:00
ganfra
a23e5e2400 Edit : fallback to room.edit when timeline item is not found. 2024-07-24 11:49:16 +02:00
ganfra
aebcc52309 Join Room : makes sure we can join by alias 2024-07-23 21:17:35 +02:00
renovate[bot]
05e56e1ebc
Update dependency org.matrix.rustcomponents:sdk-android to v0.2.33 (#3220)
* Update dependency org.matrix.rustcomponents:sdk-android to v0.2.33

* Fix API breaks

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2024-07-19 13:33:27 +02:00
Jorge Martin Espinosa
63df35e071
Use the right filename for log files so they're sorted in rageshakes (#3219)
* Use the right filename for log files so they're sorted in rageshakes

* Hide the suffix part so it's not changed by accident
2024-07-19 10:33:33 +00:00
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
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
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
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
Benoit Marty
8ec283f2ca Use SDK to get Element Wellknown content. 2024-07-02 13:28:26 +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
Benoit Marty
9196adb8b0 Remove default value for languageTag and theme. 2024-07-01 14:30:18 +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
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
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
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
ganfra
b874d3e38c
Merge branch 'develop' into feature/fga/sending_queue_iteration 2024-06-19 13:54:24 +02:00
ganfra
0e94771f03 Sending queue : reintroduce failed status for unrecoverable error 2024-06-19 11:32:04 +02:00
Benoit Marty
eceb44767c
Merge pull request #3050 from element-hq/feature/bma/concurrencyRefreshTokenfix
Avoid restoring several MatrixClient
2024-06-19 09:14:06 +02:00
Benoit Marty
4332357e76 Add import for doc. 2024-06-18 18:13:23 +02:00
Benoit Marty
a8cd659b1f Avoid restoring several MatrixClient 2024-06-18 18:04:30 +02:00
ganfra
420872fed9 Rust : handle api changes for 0.2.27 2024-06-18 17:01:38 +02:00
ganfra
664e584401 Rust : handle api changes for 0.2.27 2024-06-18 16:30:33 +02:00
Benoit Marty
725c3838af Render an error dialog in case registering a pusher fails. 2024-06-17 11:30:23 +02:00
ganfra
9250745333 Sending queue : adjust to match the latest rust api 2024-06-12 15:15:04 +02:00
ganfra
75c4f4f52c Sending queue : fix typo in comment. 2024-06-12 11:37:07 +02:00