Commit Graph

301 Commits

Author SHA1 Message Date
Benoit Marty
74a444966e Ensure the sync is started when receiving a Push, to ensure that the encryption loop is running.
Fixes notification with endecrypted content (#1178)
2023-09-04 12:50:37 +02:00
Jorge Martin Espinosa
e4124e93b8 Re-enable SyncService.withEncryptionSync to improve decryption of notifications (#1199)
* Re-enable `SyncService.withEncryptionSync` to improve decryption of notifications.

* Add feature flag
2023-08-31 13:37:20 +02:00
Benoit Marty
0ee57c83a9 Rename file and update tosUri value. 2023-08-30 16:47:40 +02:00
Marco Romano
023bfc2ffa Upgrade rust sdk to v48 (#1186)
- Sends content instead of string in message reply and edit
- Adds poll response and end APIs
- Adds logoUri to OidcConfiguration
2023-08-30 14:31:37 +00:00
renovate[bot]
78eb7aea81 Update kotlin to 1.9.10 (#1123)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-30 08:28:06 +02:00
Jorge Martin Espinosa
39ef780fe7 Prevent verification while initial sync is in progress (#1138)
* Prevent verification while initial sync is in progress

* Add `canVerifySessionFlow` to simplify the check
2023-08-24 11:43:36 +00:00
Marco Romano
f5fd505bc2 Surface send poll start API from rust sdk (#1140)
Rust api added in: https://github.com/matrix-org/matrix-rust-sdk/pull/2391

Closes https://github.com/vector-im/element-meta/issues/2010
2023-08-24 11:54:01 +02:00
renovate[bot]
f9057029cf Update dependency org.matrix.rustcomponents:sdk-android to v0.1.46 (#1130)
* Update dependency org.matrix.rustcomponents:sdk-android to v0.1.46

* Remove poll end code. The poll end event isn't shown in the timeline anymore.

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marco Romano <marcor@element.io>
2023-08-24 06:43:05 +00:00
Benoit Marty
6941bc69f6 Merge pull request #1127 from vector-im/feature/bma/finishOidc
Enable OIDC support
2023-08-23 17:01:41 +02:00
Jorge Martin Espinosa
80aaa8b8ab When event has no id, just cancel parsing the latest room message (#1126) 2023-08-23 12:50:22 +00:00
Benoit Marty
10e8517766 Implement didRefreshTokens(): update database with updated SessionData. 2023-08-23 14:42:46 +02:00
Benoit Marty
79aa128377 Add setting entry point to manage account (OIDC) 2023-08-23 12:54:22 +02:00
Benoit Marty
06a9b129d0 Restore OIDC support. 2023-08-23 12:18:42 +02:00
ganfra
2e6077e7fe Merge pull request #1108 from vector-im/feature/fga/fix_memory_leak_room_members
Fix memory leak on room members
2023-08-21 18:16:04 +02:00
ganfra
6a32a66a7a Fix memory leak : parallelMap can be cancelled so all members were not destroyed 2023-08-21 17:49:39 +02:00
ganfra
9d8db2ff9e Update rust sdk to 0.1.44 2023-08-21 17:47:03 +02:00
Jorge Martin Espinosa
814c8edc4f Media upload cancellation (#1058)
* Initial implementation of media upload cancellation

* Add tests

* Add changelog

* Update screenshots

* Add documentation

* Fix lint issues

* Fix review comments

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-17 09:02:03 +00:00
renovate[bot]
541562ee61 Update kotlin - TO BE MERGED AFTER THE RELEASE (#789)
* Update kotlin

* Update kotlinc.xml

* Update ksp

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Marco Romano <marcor@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
2023-08-17 08:58:10 +00:00
Florian Renaud
f2d1658ffa "View only" polls in the timeline (#1031)
* Handle poll events from the sdk

* Render started poll event in the timeline

* Create poll module

* Check poll kind before revealing the results

* Check if user has voted before revealing the results

* Add active poll previews

* Minor cleanup

* Update todos

* Fix CI

* Remove hardcoded string

* Update preview

* changelog file

* Update screenshots

* Use CommonPlurals

* Set poll root view as selectableGroup

* Improve poll result rendering

* Update screenshots

* Add missing showkase processor

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-08-16 14:19:12 +00:00
ganfra
c15483828d Update rust sdk to 0.1.42 (changes in tracing and sync apis) (#1055)
* Update rust sdk to 0.1.42 (changes in tracing and sync apis)

* Fix sample compilation

---------

Co-authored-by: ganfra <francoisg@element.io>
2023-08-11 21:32:31 +00:00
ganfra
226a3dbf28 Feature/fga/sync states (#1042)
* Change RoomSummaryDataSource to RoomListService to better reflects the rust api

* Better Sync management

* Sync: improve sync spinner rendering

* Sync: make test compiles

* Sync: add more test for sync spinner

* Sync: more clean-up

* Sync: pr review

---------

Co-authored-by: ganfra <francoisg@element.io>
2023-08-09 12:37:43 +00:00
Jorge Martin Espinosa
4e94d4da6b Enable filter push notifications by push rules (#1041)
* Enable filter push notifications by push rules

* Remove unused `filterByPushRules` parameter

* Use fallback notification only for items not filetered by the push rules

* Fix tests
2023-08-09 12:12:39 +00:00
ganfra
3f1d241b48 Feature/fga/rust sdk tracing (#1036)
* Align TracingConfiguration with iOS

* Create TracingTree from rust sdk

* tracing: create a working configuration with RustTracingTree

* Tracing: WIP implementation of new api

* Tracing: clean up

* Tracing: use the latest api

* Tracing: some more clean up

* Remove generated logcat file after compressing it

---------

Co-authored-by: ganfra <francoisg@element.io>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-08-09 10:18:49 +00:00
ganfra
f15817447c Update rust sdk to 0.1.41 (just make it compiles) (#1040)
Co-authored-by: ganfra <francoisg@element.io>
2023-08-09 09:16:47 +00:00
ganfra
615b05178e Update rust sdk to 0.1.39 (#1024)
Co-authored-by: ganfra <francoisg@element.io>
2023-08-02 19:53:05 +00:00
ganfra
ed6af5e49d Feature/fga/matrix client versions (#1022)
* Extract a RustMatrixClientFactory

* Use serverVersions api on client builder to speed up startup.

* Clean up

* Fix compilation of sample

---------

Co-authored-by: ganfra <francoisg@element.io>
2023-08-02 18:56:26 +00:00
Jorge Martin Espinosa
22d4df1baf Fix notification rendering by removing leftover test code (#1019) 2023-08-02 11:55:13 +00:00
renovate[bot]
acd2623598 Update dependency org.matrix.rustcomponents:sdk-android to v0.1.38 (#1015)
* Update dependency org.matrix.rustcomponents:sdk-android to v0.1.38

* Fix API breaks

* Use `roomListItem.avatarUrl` if possible

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-08-01 10:29:36 +00:00
David Langley
8fd71b4126 Reaction summary view and sorting reactions by count and then timestamp (#942)
* Sort reactions by count and then timestamp

- Sort reactions within an aggregation by timestamp descending. This puts the most recent at the top, useful in cases like the reaction summary view or getting the most recent reaction.
- Sort aggregated reactions by count and then timestamp ascending, using the most recent reaction in the aggregation. This appends new aggregations on the end of the reaction layout.

* Add reaction summary view

* fix warnings

* Fix test unit tests and add sorting tests

- Fix broken build in test code
- Add a test for reaction sorting

* Remove default closure, move logic to presenter and add tests

* Update screenshots

* Fix imports

* Revert Screenshots I didn't update

* Fix imports remove screetshots

* Update screenshots

* Update screenshots

* Address comments.

* Update screenshots

* Remove unnecessary snapshotFlow

* Fix code quality checks

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-31 17:39:20 +00:00
ganfra
7ecbbb0a81 Merge pull request #997 from vector-im/feature/fga/remove_from_main_thread
Feature/fga/remove from main thread
2023-07-31 13:39:06 +02:00
ganfra
1bdb67e4e3 Merge branch 'develop' into feature/fga/safer_callback_flows 2023-07-31 11:36:59 +02:00
ganfra
1571ba9135 Small changes after reviews 2023-07-31 11:36:28 +02:00
ganfra
a60364d304 Makes sure NotificationService is suspendable 2023-07-28 17:56:17 +02:00
Benoit Marty
d06f86f79d Merge pull request #967 from vector-im/feature/bma/detektConfig
Update detekt config.
2023-07-28 16:47:26 +02:00
ganfra
a2c59d4469 Timeline: move TimelineEncryptedHistoryPostProcessor off the main thread 2023-07-28 16:22:30 +02:00
Benoit Marty
443671e355 Merge pull request #991 from vector-im/feature/bma/redactRegardingPowerLevel
Allow user with enough power level to redact other's messages (#969)
2023-07-28 16:13:54 +02:00
ganfra
ca4bbbc050 No crash when room is already destroyed... 2023-07-28 13:40:18 +02:00
ganfra
271d0db587 Also catch Exception instead of RoomListException 2023-07-27 21:12:07 +02:00
ganfra
632c4ef168 Fix warning 2023-07-27 21:11:34 +02:00
ganfra
b75752e066 Timeline: fetch members only after timeline is ready 2023-07-27 20:49:56 +02:00
ganfra
5547b6278e Update rust sdk to 0.1.37 2023-07-27 20:49:27 +02:00
Benoit Marty
b2d3368f63 Allow user with enough power level to redact other's messages (#969) 2023-07-27 18:42:45 +02:00
Jorge Martin Espinosa
9bd97ad329 Improve fetch members performance, relax regexes for validating ids (#964)
* Fetched `RoomMembers` are mapped in parallel

* Add horizontal padding to room/user name in room details screen

* Relax User & Event id regex matches

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-26 16:31:26 +02:00
Jorge Martin Espinosa
a9d1a299f5 Prepare update to Rust SDK 0.1.36 (#966)
* Update to Rust SDK 0.1.36

* Cancel fetching members when the we exit the room
2023-07-26 14:22:09 +00:00
Benoit Marty
15ac81d32a Enable detekt rules UnderscoresInNumericLiterals and fix existing issues. 2023-07-26 11:48:08 +02:00
Benoit Marty
1d3aa2cd05 Enable detekt rules CascadingCallWrapping and fix existing issues. 2023-07-26 11:07:25 +02:00
Benoit Marty
9e3679cbd6 Enable detekt rule UseCheckOrError and fix existing issues (and a potential crash on MapboxMap?). 2023-07-26 10:18:28 +02:00
ganfra
ba12fbc9e3 Small change after PR review 2023-07-25 18:41:43 +02:00
ganfra
cfd43af45c Merge branch 'develop' into feature/fga/avoid_deadlocks 2023-07-25 16:09:24 +02:00
ganfra
daf23c5541 Rework some MatrixRoom api and fix rust 'destroyed' crash 2023-07-25 12:06:36 +02:00