Commit graph

6114 commits

Author SHA1 Message Date
valere 56b1b9dec1 configure encryption settings from state 2023-01-10 10:56:11 +01:00
valere 13d3f4f1a7 Merge branch 'develop' into feature/bca/rust_flavor 2023-01-10 08:55:04 +01:00
valere 3bae04c04a Merge branch 'develop' into feature/bca/rust_flavor 2023-01-09 23:46:14 +01:00
Benoit Marty 6eece5b270 Remove the "device" field from get /pushrules response model. 2023-01-09 18:07:47 +01:00
Benoit Marty ca3d441de0 Handle error in the thread list request. 2023-01-09 14:16:12 +01:00
Benoit Marty ce0c514dae Fix link on doc. 2023-01-09 14:11:16 +01:00
valere a217ec220f Handling incoming verification
Fix SAS state signaling problem, more tests, back navigation
2023-01-09 09:19:04 +01:00
Benoit Marty baa46634b5
Merge pull request #7885 from vector-im/feature/bma/fixLint
Fix lint false positive
2023-01-06 18:44:37 +01:00
Onuray Sahin 2c24601155
Merge branch 'develop' into feature/ons/render_ended_poll 2023-01-06 17:21:08 +03:00
Benoit Marty b7076a13dc
Merge pull request #7879 from vector-im/feature/bma/still_investigating
Reduce number of crypto database transactions when handling the sync response
2023-01-06 15:16:16 +01:00
Onuray Sahin 37f4cf11bd Merge branch 'develop' into feature/ons/render_ended_poll 2023-01-06 13:29:04 +03:00
Benoit Marty 0d2fb8e3d0 Lint: fix KotlinNullnessAnnotation warning 2023-01-05 14:07:12 +01:00
Onuray Sahin f2359ccac2 Implement ended poll indicator. 2023-01-05 14:54:16 +03:00
Benoit Marty dbf3b76331 Update doc. 2023-01-05 11:54:19 +01:00
Benoit Marty 27d32188bf Aggregate data outside of the RealmCryptoStore. 2023-01-05 11:22:54 +01:00
Benoit Marty 30940cb937 Rename UserCrossSigningKeys to UserIdentity 2023-01-05 09:53:12 +01:00
Benoit Marty 7e26c4b6f2 Rename fun 2023-01-05 09:48:25 +01:00
Benoit Marty 437b93cc18 Add some doc 2023-01-04 11:35:34 +01:00
valere 419673675c Added Self verification UI test 2023-01-03 19:35:15 +01:00
Benoit Marty 92d048f45a Update replied event when it's updated
Rebased and squashed.
Authors: Claire and Ganfra
2023-01-03 18:16:38 +01:00
Benoit Marty 06f3c11010 Changelog 2023-01-03 16:43:09 +01:00
Benoit Marty 02e7157206 Introduce CryptoCrossSigningKeys container 2023-01-03 16:16:17 +01:00
Benoit Marty 4c4ef0d73e Batch insertion of user data after downloading keys. 2023-01-03 15:57:39 +01:00
Benoit Marty f26178fc21 Avoid useless transaction 2023-01-03 15:21:03 +01:00
Benoit Marty a386a4762c Crypto store: Log realm transactions and the duration 2023-01-03 15:18:32 +01:00
Benoit Marty c1a8bf828b Batch insertion of shouldEncryptForInvitedMembers 2023-01-03 15:15:15 +01:00
Benoit Marty 6f384c799f Batch insertion of shouldShareHistory 2023-01-03 15:02:45 +01:00
Benoit Marty 0e504e9014 Format 2023-01-03 11:55:41 +01:00
Benoit Marty 837590104d Avoid launching coroutine for nothing. 2023-01-03 11:55:32 +01:00
valere 6952d17d16 Merge branch 'develop' into feature/bca/rust_flavor 2023-01-03 09:55:08 +01:00
valere fab0350ca1 rust key safety integration 2023-01-03 09:53:22 +01:00
valere 54e8debc38 cleaning and logs 2023-01-03 09:52:58 +01:00
Benoit Marty 5ee3ae5eea version++ 2023-01-02 13:39:05 +01:00
valere a345c6c8e5 fix 7870 2022-12-31 13:21:07 +01:00
valere ea2c41b818 version++ 2022-12-29 18:24:33 +01:00
valere 25f4f2175a Fix failing tests 2022-12-28 10:19:25 +01:00
valere 558317260b Add migration to clean db from SyncFilterParamsEntity 2022-12-27 15:40:49 +01:00
Onuray Sahin 486968fdc2 Render ended poll. 2022-12-26 14:41:38 +03:00
valere 76fa1bfee5 Merge branch 'develop' into feature/bca/rust_flavor 2022-12-26 09:29:03 +01:00
NIkita Fedrunov 91b4dc1f97 tests are fixed 2022-12-23 13:51:19 +01:00
NIkita Fedrunov d20121603a sync filter params moved to matrix config 2022-12-23 13:10:27 +01:00
Benoit Marty 67e15a42c0 Version++ 2022-12-20 16:50:08 +01:00
valere ee5dfba389 fix kotlinCrypto flavor compilation 2022-12-17 11:53:13 +01:00
valere 406dfaab85 quick format 2022-12-17 10:52:13 +01:00
valere d337ccd359 Merge branch 'develop' into feature/bca/rust_flavor 2022-12-17 10:51:49 +01:00
Benoit Marty 555cbe5f7d Return faster if list is empty 2022-12-16 20:44:26 +01:00
Benoit Marty b063b25e8c Ignore typing notification for ignored users (part of #2965) 2022-12-16 20:39:44 +01:00
valere 2d388f392f ignore verification events from initial sync 2022-12-16 14:03:11 +01:00
Maxime NATUREL 648f97ba78
Merge pull request #7779 from vector-im/feature/mna/relations-api-poll-end
[Poll] When a poll is ended, use /relations API to ensure poll results are correct (PSG-1013)
2022-12-16 10:40:39 +01:00
valere ca2d36303c clean logs 2022-12-16 09:34:01 +01:00
valere 3146f5209b Merge branch 'develop' into feature/bca/rust_flavor 2022-12-16 09:33:37 +01:00
valere f07aa9f6f0 Fix tests and better logs 2022-12-15 18:47:48 +01:00
valere 3efaa8e171 Remove run blocking from realm tx 2022-12-15 18:44:43 +01:00
valere 49239e6bf2 fix ER migration 2022-12-15 18:42:10 +01:00
valere b224a8d626 Fix lock blocking sync loop 2022-12-15 17:52:14 +01:00
Benoit Marty 8c49609aa6 version++ 2022-12-15 10:20:26 +01:00
Maxime NATUREL e5663ec1c3 Fixing unit tests 2022-12-15 09:45:17 +01:00
Nikita Fedrunov cf3abd6562
thread list loading (#7766) 2022-12-14 18:56:16 +01:00
Yoan Pintas c74ea2dd16
Merge pull request #7719 from vector-im/feature/fre/voice_broadcast_last_message
Voice Broadcast - Update last message in the room list
2022-12-14 17:39:42 +01:00
Maxime NATUREL 4e4f72f241 Fixing code styling issues 2022-12-14 17:37:45 +01:00
Maxime NATUREL dd13e1cb6d Fixing Copyright in SDK 2022-12-14 17:02:09 +01:00
Maxime NATUREL 66abda63ee Removing unused imports 2022-12-14 16:35:34 +01:00
Maxime NATUREL bd7b6d6495 Adding unit test on task to fetch the poll response events 2022-12-14 16:33:27 +01:00
Maxime NATUREL 644803dcf3 Adding unit test on aggregation processor 2022-12-14 14:31:27 +01:00
Maxime NATUREL 9338ec9805 Mutualizing decryption of event 2022-12-14 11:49:41 +01:00
Maxime NATUREL 8b7c8e3351 Task to ensure aggregation of all poll responses when receiving ending poll event 2022-12-14 11:27:08 +01:00
Maxime NATUREL 8c88140b3c Updating Room API to clarify usage 2022-12-14 11:27:08 +01:00
Maxime NATUREL fe5e4d6830
Merge pull request #7757 from vector-im/fix/mna/poll-end-not-recognized
[Poll] Poll end event is not recognized (PSG-948 and PSG-949)
2022-12-13 17:08:01 +01:00
valere 3abd68c153 fix compilation warning 2022-12-13 15:48:13 +01:00
Maxime NATUREL 851276978f Remove unused import 2022-12-13 15:47:30 +01:00
Maxime NATUREL 96e29d4d10 Renaming the name of the test file be consistent 2022-12-13 15:46:14 +01:00
Maxime NATUREL 71df1e61d4 Remove non necessary call when getting the targeted event id 2022-12-13 15:45:46 +01:00
valere c3f439ea72 code quality 2022-12-13 15:27:13 +01:00
Nikita Fedrunov 3dadebe505
threads are enabled by default end forced to enabled for existing users (#7775) 2022-12-13 14:02:45 +01:00
valere f541be4755 Merge branch 'develop' into feature/bca/rust_flavor 2022-12-13 11:52:46 +01:00
valere d0807b9239 Fix test compilation 2022-12-13 11:50:06 +01:00
Valere d05e10e10a
crypto migration tests (#7645)
Crypto migration tests

Co-authored-by: Benoit Marty <benoitm@matrix.org>
2022-12-13 11:38:49 +01:00
valere 3db82e629b Merge branch 'develop' into feature/bca/rust_flavor 2022-12-13 10:11:21 +01:00
valere 9680b044f9 Fix test crash 2022-12-13 09:48:15 +01:00
Onuray Sahin 250bd9c620
Merge pull request #7754 from vector-im/feature/ons/remove_client_information_account_data
Delete unused client information from account data (PSG-871)
2022-12-13 11:10:41 +03:00
Hugh Nimmo-Smith 34ee399f94
Merge pull request #7737 from vector-im/bugfix/hughns/qr-server-change 2022-12-12 18:21:39 +00:00
Onuray Sahin 9954045d30
Merge pull request #7740 from vector-im/feature/ons/remove_account_data
Handle account data removal (PSG-865, PSG-867)
2022-12-12 19:31:16 +03:00
Hugh Nimmo-Smith 21cbe52740 Lint 2022-12-12 16:30:34 +00:00
Hugh Nimmo-Smith 1930047ce1 Fix issue of QR not being offered where domain is entered instead of homeserver 2022-12-12 16:30:34 +00:00
valere c52be1f5b1 Merge branch 'develop' into feature/bca/rust_flavor 2022-12-12 15:26:44 +01:00
valere 8c773b6d00 update crypto crate 2022-12-12 15:07:46 +01:00
Onuray Sahin 8c6c2dd5c2 Code review fixes. 2022-12-12 16:36:40 +03:00
Onuray Sahin 746fb7719a Code review fixes. 2022-12-12 13:39:56 +03:00
Maxime NATUREL dba8aaea16
Merge pull request #7752 from vector-im/fix/mna/wrong-usage-of-stable-fields
Revert usage of stable fields in live location sharing and polls
2022-12-09 17:32:53 +01:00
Maxime NATUREL bd91db66f8 Fixing retrieve of related event id in the end poll event during aggregation 2022-12-09 14:07:06 +01:00
Onuray Sahin 8206b534f9 Create a task to delete an event data with a given type. 2022-12-09 14:52:27 +03:00
Onuray Sahin 3d68233723 Support retrieving account data whose key starts with a string. 2022-12-09 14:51:23 +03:00
valere 438b456f8e quick incremental backup support 2022-12-08 22:53:16 +01:00
valere 4766bc709d Fix: ER showing shields in clear rooms 2022-12-08 18:06:05 +01:00
Maxime NATUREL 220b1d86c0 Reverting usage of some stable fields whereas related MSCs have not landed into the specs yet 2022-12-08 17:42:51 +01:00
Onuray Sahin b09a00efda Code review fixes. 2022-12-08 17:11:09 +03:00
valere bfe6207a63 Fix crash when no ER migration needed 2022-12-08 14:44:48 +01:00
Hugh Nimmo-Smith 7bbd91f2a9 Handle error whilst download key for self 2022-12-08 13:27:49 +00:00
Hugh Nimmo-Smith 3a2a916c2f Clarify comment 2022-12-08 13:27:49 +00:00
Hugh Nimmo-Smith 73fd93148a Download device keys for self prior to verification checks
Fixes https://github.com/vector-im/element-android/issues/7676
2022-12-08 13:27:49 +00:00
valere 14cee226c5 Merge branch 'develop' into feature/bca/rust_flavor 2022-12-08 13:37:43 +01:00
valere d3ef5cc230 Merge olm to Rust migration 2022-12-08 11:59:46 +01:00
Onuray Sahin 055bf6d302 Revert unused companion object. 2022-12-07 21:41:22 +03:00
Florian Renaud 1a3ca7b1a0 Filter event types from decrypted content 2022-12-07 18:11:51 +01:00
Florian Renaud 6e5461f300 Stop filtering events with reference relationship when computing latest previewable event 2022-12-07 18:11:51 +01:00
Florian Renaud 4d6c04baf9 Add provider for custom event types 2022-12-07 18:11:51 +01:00
Florian Renaud fdb8743ad3 Create provider package 2022-12-07 18:11:51 +01:00
Onuray Sahin f4429d4c9c Handle sync response to delete user and room account data. 2022-12-07 18:58:14 +03:00
Onuray Sahin 765202e05a Add helper functions to delete user and room account data. 2022-12-07 18:17:43 +03:00
Valere 01533db4e0
Merge pull request #7713 from vector-im/feature/bca/to_device_tracing
add to device tracing id
2022-12-07 16:16:20 +01:00
Onuray Sahin d244f7324c Add api functions to delete account data. 2022-12-07 18:12:25 +03:00
Amit Kumar 17d25e2597
Enable reset all and skip options (#7721)
* Dismiss bottomsheet on skipping verification

* Enable reset all and skip options

* Change ResetAll bottomsheet event to no-op for user verification

* Fix strings and improve state step logic in SharedSecureStorageViewModel
2022-12-07 19:40:22 +05:30
valere 63d2886415 use msgid in logs for consistency 2022-12-06 16:07:24 +01:00
valere 8646cc441d do not add tracing ids to verification events 2022-12-06 15:30:06 +01:00
Benoit Marty ae93c07597 Do not propagate failure if saving the filter server side fails. This will be retried later. 2022-12-06 15:01:47 +01:00
valere 139eb1708c fix uncheck cast warning 2022-12-06 08:17:31 +01:00
valere 2ed212aa11 Fix copyright 2022-12-05 18:30:38 +01:00
valere f2952f2dee add to device tracing id 2022-12-05 18:15:55 +01:00
valere cba3c270f5 Reduce room list placeholder lags 2022-12-05 13:47:21 +01:00
valere 0953bc944d Fix test compilation | rust / crypto missing api 2022-12-05 13:46:35 +01:00
valere adacd55a05 Fix backup authdata serialization 2022-12-05 13:45:58 +01:00
Maxime NATUREL 637961bbb1 Update related account data event on notification method change 2022-12-05 09:43:56 +01:00
Maxime NATUREL 14b21dc039 Adding use cases to create and delete notifications settings in account data 2022-12-05 09:43:56 +01:00
valere 03379a6636 Merge branch 'develop' into feature/bca/rust_flavor 2022-12-03 11:15:46 +01:00
valere ae9711b7d1 Basic sentry e2e reporting for rust + decrypt trust 2022-12-02 18:24:23 +01:00
valere b9045eb25f ktlint 2022-12-02 12:43:05 +01:00
valere cb4720f6d5 CI update for ER 2022-12-02 12:40:48 +01:00
valere 17b8d3c97b fix unhandled exceptions and cleaning 2022-12-02 12:38:12 +01:00
valere b0168dc633 fix compilation rust 2022-12-01 16:08:01 +01:00
valere a110c9ee50 fix moshi number parsing for rust 2022-12-01 16:07:28 +01:00
valere 43421e3eb9 update doc 2022-11-30 19:09:13 +01:00
valere 304989f79c Fix copyrights 2022-11-30 18:15:42 +01:00
valere 9fbc0cdd46 fix compilation 2022-11-30 16:20:02 +01:00
valere 6e371b7d2d code quality 2022-11-30 16:01:11 +01:00
valere b3d8b1527c cleaning 2022-11-30 15:14:31 +01:00
valere 501625c19d post rebase fix rust flavor 2022-11-30 12:10:34 +01:00
valere a9b970832e Merge branch 'develop' into feature/bca/rust_flavor 2022-11-30 11:05:32 +01:00
Benoit Marty 52477aa9d5 version++ 2022-11-30 11:03:58 +01:00
valere bb16d77ec6 fix QR verification 2022-11-30 00:10:46 +01:00
valere f8d6511c59 rust sas state mapping 2022-11-29 11:22:21 +01:00
valere fb1995e9c9 only check moshi numbers for rust-sdk 2022-11-29 11:21:54 +01:00
valere d9342707fd update rust-sdk bindings 2022-11-28 21:48:46 +01:00
Florian Renaud 49199bd5e2
Merge pull request #7611 from vector-im/feature/fre/voice_broadcast_deletion
Be less restritive when pruning redacted events
2022-11-28 13:57:40 +01:00
Florian Renaud dd81584076 Ad default value to MessageStickerContent.body in case of redaction 2022-11-28 12:12:49 +01:00
Nikita Fedrunov 5aeca1f81a
saving sync filter changed (#7627) 2022-11-28 09:48:28 +01:00
Florian Renaud a8f3bb1d4e Remove to-device events from event type filtering for redaction 2022-11-25 14:42:46 +01:00
Florian Renaud 5a43b76488 Log a warning if the event content is not pruned 2022-11-25 14:42:45 +01:00
Florian Renaud 2477632e2b Fix exception when getting models on some redacted event
An exception was triggered because the excepted model body was null for redacted events
2022-11-25 14:42:45 +01:00
Florian Renaud 0209cc4969 Prune redacted events which are not explicitly restricted 2022-11-25 14:42:45 +01:00
Florian Renaud eb12b1c99b Use StableUnstableId object for some event types 2022-11-25 14:42:45 +01:00