Commit Graph

154 Commits

Author SHA1 Message Date
ganfra
daf23c5541 Rework some MatrixRoom api and fix rust 'destroyed' crash 2023-07-25 12:06:36 +02:00
Benoit Marty
55538c2773 Enable detekt rules UnusedImports and cleanup the code. 2023-07-20 18:00:23 +02:00
Benoit Marty
c882cab67f Merge pull request #920 from vector-im/feature/bma/slidingSyncState
Sliding sync state rendering
2023-07-19 16:26:14 +02:00
Benoit Marty
c04fcfc352 Make SyncState values match SyncServiceState values. 2023-07-19 14:44:53 +02:00
Marco Romano
278f8ae4c6 Send My Location (#770)
- https://github.com/vector-im/element-meta/issues/1682
2023-07-19 09:58:13 +00:00
ganfra
888ca1c86b Merge branch 'develop' into feature/fga/power_level 2023-07-18 22:54:33 +02:00
ganfra
42c3e21b3d Fix tests 2023-07-18 22:27:44 +02:00
ganfra
e00462900e PowerLevel: use new api exposed from rust which doesn't need to load members. 2023-07-18 15:10:44 +02:00
ganfra
1a9f0732e1 Merge branch 'develop' into feature/fga/update-rust-sdk-0.1.32 2023-07-18 10:12:19 +02:00
ganfra
92db07ff83 Merge branch 'develop' into feature/fga/better_timeline_scroll 2023-07-17 23:35:41 +02:00
ganfra
c7406de5e2 Update rust sdk : start branching new SyncService (wip) 2023-07-17 22:26:21 +02:00
Benoit Marty
dafc8d5ebe Merge pull request #859 from vector-im/feature/bma/transactionId
Create value class for transactionId
2023-07-17 11:28:42 +02:00
ganfra
231f278adb Timeline: fix some tests and a one more 2023-07-13 17:09:20 +02:00
ganfra
313b3a29b6 Merge pull request #863 from vector-im/feature/fga/timeline_pagination
Feature/fga/timeline pagination
2023-07-13 11:58:10 +02:00
ganfra
635e9b9edd Timeline: avoid pagination when timeline is not ready 2023-07-12 22:43:35 +02:00
Benoit Marty
771a4ecdd3 Create value class for transactionId. There is no validation on the format, but validation is a bonus for userId, roomId, etc.
The main advantage of using value classes instead of Strings everywhere is to detect errors at compilation time.
2023-07-12 18:15:17 +02:00
ganfra
bd04b579c6 Merge branch 'develop' into feature/fga/update-rust-sdk-0.1.31 2023-07-12 17:36:05 +02:00
Benoit Marty
d56a686b60 Merge pull request #850 from vector-im/feature/bma/fixTests
Ensure CI run all the tests.
2023-07-12 16:59:37 +02:00
ganfra
3d0440c580 Update rust sdk to 0.1.31: fix build 2023-07-12 16:50:40 +02:00
Benoit Marty
2b84e7adc0 Fix warning (rename the base parameter name). 2023-07-12 14:11:26 +02:00
Benoit Marty
df4c03cc8e Improve UX on Block/Unblock user action. Add loading and error case. And make the value (a bit more) live. 2023-07-11 17:48:31 +02:00
ganfra
da27970116 Merge branch 'develop' into feature/fga/waiting_ss_room 2023-07-07 11:34:45 +02:00
ganfra
ec4855cfdf Room : Fix tests as there is less recomposition 2023-07-06 19:58:06 +02:00
Jorge Martin Espinosa
827c6e25ba Fix displaying reaction row in message action list (#788)
* Fix displaying reaction row in message action list

* Rename `sendState` to `localSendState` and make it nullable.

Create an `isRemote` helper to detect if an event comes from the server instead.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-06 16:51:51 +00:00
Jorge Martin Espinosa
02fa8aaf46 Fix actions for redacted, not sent and media messages (#771)
* Fix actions for redacted, not sent and media messages

* Make `EventDebugInfoView` sections fill max width

* Don't display action list if there are no actions to display

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-05 14:08:17 +00:00
ganfra
03b2cbb06f Room: remove bestName and use displayName instead of name where it makes sense 2023-07-05 12:01:51 +02:00
ganfra
79eef06995 Await room: first attempt to wait for a room to be ready 2023-07-04 18:19:06 +02:00
Marco Romano
29d5d3baa7 Adds new optional parameters to MatrixRoom.sendLocation() (#767)
For location sharing.
2023-07-04 13:57:19 +00:00
Benoit Marty
666e1f1cbc Move BuildMeta fake to common test module. 2023-07-03 17:09:04 +02:00
Benoit Marty
fc1f60895d Merge pull request #731 from vector-im/feature/fga/timeline_back_pagination
Feature/fga/timeline back pagination
2023-06-30 09:27:36 +02:00
ganfra
848afbf36d Timeline: use val instead of fun for flows 2023-06-29 18:03:12 +02:00
ganfra
e4aae094c2 Merge pull request #721 from vector-im/feature/fga/media_upload_progress
Feature/fga/media upload progress
2023-06-29 18:01:50 +02:00
ganfra
e510726359 Fix coverage and address PR review comment. 2023-06-29 17:40:19 +02:00
Jorge Martin Espinosa
96d90a75d9 Send read receipts (#713)
* Send read receipts

* Add changelog

* Add tests.

* Optimise how sending read receipts work in the timeline.

* Move the check for send read receipts to the presenter

Also improve the way we find the first visible `Event` if we have `Virtual` ones in the timeline.
2023-06-29 10:08:19 +00:00
Chris Smith
712a9226e6 Merge pull request #696 from vector-im/feature/cjs/leaving-dms
Show a prompt to reinvite other party in a DM
2023-06-29 10:42:35 +01:00
Marco Romano
b504dbe5f0 MatrixRoom API refinement (#719)
- `syncUpdateFlow` becomes a `val` and always returns the same instance of the underlying `StateFlow` instead of different `Flow` instances to allow consumers not to remember the `Flow` and not to specify an unneeded initial value.
- `timeline` becomes a `val` as it already always returns the same instance.
- Amends calling code accordingly
- Removes a few unneeded `val`s in `RustMatrixClient
- Fixes a small bug in `MessagesPresenter` that allowed to sometime show a newly created room's name as "Empty room" (changes `LaunchedEffect(syncUpdateFlow)` to `LaunchedEffect(syncUpdateFlow.value)`)
2023-06-29 10:48:55 +02:00
Chris Smith
f7d498599b Show a prompt to reinvite other party in a DM
If you are looking at a DM where the other party has left then
when you focus the composer for the first time we'll show a
dialog asking if you want to reinvite the other party.

Closes #590
2023-06-28 17:20:51 +01:00
ganfra
e3744636b6 Merge branch 'develop' into feature/fga/room_list_api 2023-06-28 15:14:06 +02:00
jonnyandrew
9e8257cc4c Toggle reactions from the timeline (#707) 2023-06-28 13:02:04 +00:00
ganfra
3d872ec0e2 RoomList: fix tests and sample 2023-06-27 14:06:58 +02:00
ganfra
2a24d0196e Merge branch 'develop' into feature/fga/room_list_api 2023-06-27 10:47:50 +02:00
Marco Romano
8101f42979 Add sendLocation API to Rust Room (#681)
Will be used by the location sharing feature.
2023-06-27 09:12:17 +02:00
renovate[bot]
ff135352d8 Update dependency org.matrix.rustcomponents:sdk-android to v0.1.24 (#675)
* Update dependency org.matrix.rustcomponents:sdk-android to v0.1.24

* Add new `filterByPushRules`.
Only existing usage of this API will set this param to `true` in order to not change the current behavior.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marco Romano <marcor@element.io>
2023-06-27 08:29:36 +02:00
ganfra
5090bff06a RoomList: update LoadingState and fix a crash 2023-06-26 22:30:12 +02:00
ganfra
e5c86675a4 RoomList: more rework on RoomSummaryDataSource 2023-06-26 18:02:53 +02:00
Benoit Marty
f1019f3444 Move cache management to a dedicated class and in the setting module, for clarity. 2023-06-26 11:07:53 +02:00
Benoit Marty
b563b1ec95 Idx -> Index 2023-06-26 11:07:53 +02:00
Benoit Marty
89d4969833 Implement missing methods in Fake class. 2023-06-26 11:07:53 +02:00
Benoit Marty
5fe186f9de var -> val 2023-06-26 11:07:53 +02:00
Benoit Marty
5d8adb25ae Display cache size in the developer settings (#643) 2023-06-26 11:06:36 +02:00