Commit graph

192 commits

Author SHA1 Message Date
ganfra
10c2859fac Merge branch 'develop' into feature/fga/waiting_ss_room 2023-07-07 11:34:45 +02:00
ganfra
8852514652 Room: add extension method awaitAllRoomsAreLoaded with Timeout 2023-07-07 10:51:43 +02:00
Benoit Marty
f7dd327cb6
Merge pull request #808 from vector-im/feature/fga/update-rust-sdk-0.1.28
Matrix rust sdk: update to 0.1.28
2023-07-07 09:43:33 +02:00
ganfra
b89e357520 Matrix rust sdk: update to 0.1.28 2023-07-06 18:56:11 +02:00
Jorge Martin Espinosa
c133a6e606
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
Chris Smith
83338131fd Show descriptions for locations.
Descriptions show in the same message bubble above the map in
the timeline, and in a bar at the top of the expanded map view.
2023-07-05 15:18:36 +01:00
Jorge Martin Espinosa
78a26c034e 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
11f236aba5 Room: dispatch getRooms on background thread 2023-07-05 12:56:39 +02:00
ganfra
2dcd94076f Room: remove bestName and use displayName instead of name where it makes sense 2023-07-05 12:01:51 +02:00
ganfra
d59f59e9f6 Await room: first attempt to wait for a room to be ready 2023-07-04 18:19:06 +02:00
Marco Romano
ae054b7130 Adds new optional parameters to MatrixRoom.sendLocation() (#767)
For location sharing.
2023-07-04 13:57:19 +00:00
ganfra
91ad3dc834 Merge branch 'develop' into feature/fga/room_detail_factory_improvement 2023-07-04 10:22:52 +02:00
ganfra
4ecd1f9f66 Update rust sdk to 0.1.27 2023-07-03 20:53:16 +02:00
ganfra
f64c491805 RoomDetailsFRoomList: don't use full room except for invites 2023-07-03 20:52:46 +02:00
ganfra
bbaed2e402 Merge branch 'feature/fga/update-rust-sdk-0.1.27' into feature/fga/room_detail_factory_improvement 2023-07-03 20:49:20 +02:00
ganfra
348f99970b Update rust sdk to 0.1.27 2023-07-03 20:47:17 +02:00
ganfra
61dff7570c RoomList: prepare code to not fetch fullRoom 2023-07-03 17:48:00 +02:00
Chris Smith
005b22391f Merge remote-tracking branch 'origin/develop' into feature/cjs/view-location-in-timeline 2023-06-30 09:30:31 +01:00
Benoit Marty
a2a5d251d1 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
3aa5cce8dc Timeline: use val instead of fun for flows 2023-06-29 18:03:12 +02:00
Chris Smith
1e17d2943f Show location events in timeline
Not in scope: interacting with the timeline items,
reply formatting. These will be implemented separately.

Closes #689
2023-06-29 16:37:15 +01:00
Benoit Marty
011f7a1064 Rename ElementX to Element X. Only for user facing value. In the doc I prefer to keep ElementX. 2023-06-29 14:15:36 +02:00
Benoit Marty
9bd4aff1e7 Provide the user agent to RustMatrixAuthenticationService 2023-06-29 13:07:23 +02:00
Benoit Marty
b553c73a9b Add TODO for the remaining case. 2023-06-29 13:05:23 +02:00
Benoit Marty
f4b4e4d316 Configure user agent for all network request (#677) 2023-06-29 13:05:23 +02:00
Jorge Martin Espinosa
469b54f204 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
f4e17cf12d 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
354374ed49 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
53861fedb6 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
0631830059 RoomListService: enable encryption 2023-06-28 16:49:08 +02:00
ganfra
f25314f7f7 Coroutine: create extension method to create childScope 2023-06-28 16:41:59 +02:00
ganfra
8e5c2a749a Merge branch 'develop' into feature/fga/room_list_api 2023-06-28 15:14:06 +02:00
jonnyandrew
366a800a2c Toggle reactions from the timeline (#707) 2023-06-28 13:02:04 +00:00
Benoit Marty
43b7acc64e Iterate on reactions (#668) 2023-06-27 19:49:14 +02:00
ganfra
f6a1db44a6 Fix some code quality/formatting 2023-06-27 14:43:05 +02:00
ganfra
812880a148 RoomList: fix tests and sample 2023-06-27 14:06:58 +02:00
ganfra
d9559af2cf RoomList: branch invites 2023-06-27 12:52:06 +02:00
ganfra
34f5e0597a Merge branch 'develop' into feature/fga/room_list_api 2023-06-27 10:47:50 +02:00
ganfra
8f5fb64ba5 RoomList/Timeline: makes sure initial values are set before computing diff/update 2023-06-27 10:47:14 +02:00
Marco Romano
4fe7bb6809 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]
32332deaf4 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
eb00ef3c06 RoomList: fix small error in update processing 2023-06-26 22:58:54 +02:00
ganfra
7c76a74a30 RoomList/Timeline : Add Buffer(Unlimited) to avoid blocking rust listener thread 2023-06-26 22:32:59 +02:00
ganfra
19e2c104af RoomList: update LoadingState and fix a crash 2023-06-26 22:30:12 +02:00
ganfra
8c66924be9 Timeline: refactor a bit 2023-06-26 18:18:48 +02:00
ganfra
fa48c29486 RoomList: more rework on RoomSummaryDataSource 2023-06-26 18:02:53 +02:00
Benoit Marty
b6920afb7f Move cache management to a dedicated class and in the setting module, for clarity. 2023-06-26 11:07:53 +02:00
Benoit Marty
145cd410c7 Idx -> Index 2023-06-26 11:07:53 +02:00
Benoit Marty
35dc9eebfc Ensure all file about sqlite are deleted. 2023-06-26 11:07:53 +02:00
Benoit Marty
f9423fc15e Close the client before removing its data. Probably safer. 2023-06-26 11:07:22 +02:00