Commit Graph

  • 50473ba1a8 chore(ring buffer): prefix all tests with test_ in this file Benjamin Bouvier 2024-10-28 16:10:28 +01:00
  • 5d828d234e feat(ring buffer): implement RingBuffer::iter_mut() Benjamin Bouvier 2024-10-28 16:09:41 +01:00
  • 9c858c1208 refactor(base): rename all send-queue related "events" to "requests" Benjamin Bouvier 2024-10-28 15:09:50 +01:00
  • 58d46f015b refactor(base): add a QueuedRequestKind enum Benjamin Bouvier 2024-10-25 19:34:44 +02:00
  • 4cbd18cb37 refactor(base): move all send-queue related types to a new store::send_queue module Benjamin Bouvier 2024-10-25 18:32:35 +02:00
  • 888f992df0 refactor(base): Renamed StateStore::list_dependend_send_queue_events to load_dependent_send_queue_events Benjamin Bouvier 2024-10-25 18:24:01 +02:00
  • ee80291c41 chore: Never skip breaking changes with git-cliff Kévin Commaille 2024-10-29 17:17:09 +01:00
  • de3a667eb9 chore: Add an empty line between struct fields. Ivan Enderlin 2024-10-29 17:02:51 +01:00
  • ce9dc73376 doc(crypto) Crypto changelog documenting VerificationRequestState::Transitioned interface change Andy Balaam 2024-10-29 11:11:20 +00:00
  • 03535832ec refactor(room): remove sdk::Room::room_power_levels function Jorge Martín 2024-10-29 12:38:47 +01:00
  • c143f981bd refactor(room_list): only display the knock state events if the current user can act on them Jorge Martín 2024-10-28 13:23:58 +01:00
  • f4a18989fb feat(room_list): allow knock state event as latest_event Jorge Martín 2024-10-25 13:49:26 +02:00
  • 6752cf73df test(sdk): Move tests into their correct module. Ivan Enderlin 2024-10-29 10:11:28 +01:00
  • e87bed8ef4 chore(sdk): Move all RoomEventCache types from mod.rs to room/mod.rs. Ivan Enderlin 2024-10-28 16:02:27 +01:00
  • 2f19e2b762 chore(sdk): Rename event_cache/store.rs to event_cache/room/events.rs. Ivan Enderlin 2024-10-28 15:27:23 +01:00
  • b66024c386 test: Update Synapse from 1.115 to 1.117. Ivan Enderlin 2024-10-29 10:33:50 +01:00
  • c48bb13159 doc: Deal with paragraphes in trailers (#4179) Ivan Enderlin 2024-10-29 10:39:42 +01:00
  • 5f0ba1e7df refactor(crypto) Avoid msk and ssk abbreviations in test data Andy Balaam 2024-10-22 12:34:20 +01:00
  • 91fa1669be refactor(crypto) Rename device methods in IdentityChangeDataSet to match identity names Andy Balaam 2024-10-22 12:17:10 +01:00
  • a1a4ce0a95 refactor(crypto) Tidy IdentityChangeDataSet test data Andy Balaam 2024-10-21 17:27:50 +01:00
  • 131921c045 fix(tests) Increase a test timeout to fix occasional flakes I saw locally Andy Balaam 2024-10-22 12:08:31 +01:00
  • b62661bc70 feat(sdk): Map Update::RemoveItem into VectorDiff::Remove in UpdateToVectorDiff. Ivan Enderlin 2024-10-23 14:16:58 +02:00
  • e0be1e8e32 fix(sdk): Fix a bug in an optimisation of UpdatetoVectorDiff. Ivan Enderlin 2024-10-23 14:15:48 +02:00
  • c23c3b9558 chore(sdk): Rename a couple of variables. Ivan Enderlin 2024-10-23 14:14:45 +02:00
  • ca3d5693b4 chore(sdk): Rename a couple of variables. Ivan Enderlin 2024-10-23 14:13:17 +02:00
  • 135c448f2d chore(sdk): Extract code into a map_to_offset method. Ivan Enderlin 2024-10-23 11:13:07 +02:00
  • 01cbce907c feat(sdk): Add LinkedChunk::remove_item_at. Ivan Enderlin 2024-10-22 16:35:33 +02:00
  • df4a5c36fc Pass the DeviceData in between the Ready and Transitioned states instead of fetching it from the store. Stefan Ceriu 2024-10-24 17:52:51 +03:00
  • 8492968792 Pass a copy of the other DeviceData in between the (Requested, Ready) and (Created, Ready) states Stefan Ceriu 2024-10-24 09:49:51 +03:00
  • d31f5b2a72 chore(tests): fix verification integration tests following changes to the data associated with VerificationRequestState::Requested Stefan Ceriu 2024-10-21 12:40:33 +03:00
  • 8469cb1146 fix(crypto): fix incorrect VerificationMachine tests - the tests used to incorrectly wrap the to-device content into an event as if it was sent by alice instead of bob Stefan Ceriu 2024-10-15 17:13:27 +03:00
  • bb8b0cf6b9 Expose requesting device details to the final client Stefan Ceriu 2024-10-10 18:44:22 +03:00
  • 35dabf7346 feat(crypto): store a copy of the requesting DeviceData within VerificationRequestStates Stefan Ceriu 2024-10-10 12:14:11 +03:00
  • f771eec3c5 Fix a clippy warning re single matching Stefan Ceriu 2024-10-10 12:14:43 +03:00
  • 6455585f1e Documentation + cleanup Stefan Ceriu 2024-10-09 15:32:33 +03:00
  • 3a34b03726 Expose mechanism for registering to verification updates before actually accepting one - allows handling remote cancellations on verification requests that have not yet been accepted Stefan Ceriu 2024-10-09 15:22:22 +03:00
  • 8cf0716db2 refactor(ffi): switch to using VerificationRequest::changes instead of direct to_device events. Stefan Ceriu 2024-10-09 14:16:03 +03:00
  • 660a305cfa feat(ffi): add support for receiving and working with session verification requests Stefan Ceriu 2024-10-07 16:41:33 +03:00
  • b2af1eeb20 chore(deps): bump crate-ci/typos from 1.26.0 to 1.26.8 dependabot[bot] 2024-10-28 14:20:30 +00:00
  • 77b3aa8124 test(sdk): Test the RoomEvents' methods. Ivan Enderlin 2024-10-22 12:03:22 +02:00
  • cf7cb5c350 doc(sdk): Add more documentation for RoomEvents. Ivan Enderlin 2024-10-22 11:15:04 +02:00
  • ac7bc6461f chore(sdk): Add an Event type alias for the sake of convenience. Ivan Enderlin 2024-10-22 10:37:26 +02:00
  • 7c39fd6ae5 chore(ffi): Expose supported OIDC prompts in the login details. Doug 2024-10-25 14:14:02 +01:00
  • 40f4fc138b chore(room_preview): add RoomListItem::preview_room (#4152) Jorge Martin Espinosa 2024-10-25 14:33:16 +02:00
  • d3d7c03892 doc(crypto) Update a doc comment on update_user_state_to Andy Balaam 2024-10-25 10:43:07 +01:00
  • 3558886b98 feat(crypto) Support Verified and VerificationViolation updates in IdentityStatusChanges streams Andy Balaam 2024-10-18 15:39:48 +01:00
  • 47361b93e9 refactor(crypto) Test RoomIdentityState by hard-coding identity states Andy Balaam 2024-10-18 15:47:42 +01:00
  • f5cdbd8e41 refactor(crypto) Rename test functions to reflect wider name change Andy Balaam 2024-10-18 12:12:50 +01:00
  • f8c23d8aa0 feat(media): add support for async uploads Benjamin Bouvier 2024-10-23 16:38:17 +02:00
  • 1a3c5045dd chore(room): add copyright notice to sdk/room/mod Benjamin Bouvier 2024-10-23 13:50:34 +02:00
  • ca1d829788 sliding_sync(state): use * for m.call.member when requesting state through sliding sync - introduced in https://github.com/matrix-org/matrix-rust-sdk/pull/4159 with an empty string - call members use custom state_keys and as such not specifying the sentinel won't match them and state won't be returned matrix-sdk-ffi/20241024 Stefan Ceriu 2024-10-24 10:46:38 +03:00
  • 31e9600078 feat(send_queue): Persist failed to send errors (#4137) Valere 2024-10-23 12:48:55 +02:00
  • 3291a426d8 test(crypto): rename UtdCause tests with test_ prefix Richard van der Hoff 2024-10-22 11:57:16 +01:00
  • 1368a8534c feat(crypto): Add more reason codes to UtdCause Richard van der Hoff 2024-10-17 22:17:22 +01:00
  • 7cfcc8ecc1 refactor(crypto): pass utd info into UtdCause::determine Richard van der Hoff 2024-10-17 22:16:33 +01:00
  • c4f9c20115 feat(crypto): rename UtdCause::Membership Richard van der Hoff 2024-10-17 21:42:02 +01:00
  • 0c81206653 refactor(timeline): retry_event_decryption: re-use utd cause Richard van der Hoff 2024-10-17 21:34:42 +01:00
  • a61bc3cbbd refactor(ui): add UTD info to TimelineEventKind::UnableToDecrypt Richard van der Hoff 2024-10-11 16:21:20 +01:00
  • 74de617d76 refactor(ui): add TimelineEventKind::UnableToDecrypt Richard van der Hoff 2024-10-11 16:05:52 +01:00
  • 3f5d54c494 chore(knocking): Add optional reason and server_names parameters to Client::knock Jorge Martín 2024-10-17 17:26:17 +02:00
  • f2f99fb207 chore(ffi): move the store_in_cache timeline media upload parameter before the progress_watcher closure for aesthetic reasons Stefan Ceriu 2024-10-22 17:23:14 +03:00
  • 6196ebaba6 chore(media): use the same media method when caching a thumbnail as the default one used in the FFI Benjamin Bouvier 2024-10-22 15:30:38 +02:00
  • 65bb373379 chore(ui): Add the DEFAULT_ROOM_SUBSCRIPTION_EXTRA_REQUIRED_STATE constant. Ivan Enderlin 2024-10-22 14:17:19 +02:00
  • e62c47132e feat(ui): RoomListService::subscribe_to_rooms no longer has a settings argument. Ivan Enderlin 2024-10-22 13:49:58 +02:00
  • 996b391506 feat(ui): Add m.room.topic and m.room.pinned_events in all_rooms. Ivan Enderlin 2024-10-22 13:28:13 +02:00
  • 74722f48aa fix(ui): Add the m.call.member state event in the required state. Ivan Enderlin 2024-10-22 13:21:22 +02:00
  • e3180cdbc5 fix(crypto): Don't warn about verified users when subscribing to identity updates Andy Balaam 2024-10-16 10:17:16 +01:00
  • 9c03c5dd7e feat(media): cache thumbnails too with a sensible media request key Benjamin Bouvier 2024-10-22 11:37:43 +02:00
  • b46ebbf34e feat(media): don't clone the data when uploading an encrypted media Benjamin Bouvier 2024-10-21 16:02:32 +02:00
  • d3bfdb9563 feat(media)!: optionally cache a media after upload Benjamin Bouvier 2024-10-17 16:08:52 +02:00
  • 3887c10444 test: Update tests to use new UTD TimelineEventKind variant Richard van der Hoff 2024-10-11 17:18:01 +01:00
  • b69575d5ff refactor(timeline): store UTDs in decrypt_room_event Richard van der Hoff 2024-10-10 17:32:00 +01:00
  • 543152d914 refactor(timeline): store UTDs in decrypt_sync_room_event Richard van der Hoff 2024-10-10 15:38:38 +01:00
  • c8b38257f1 refactor(common): add TimelineEventKind::UnableToDecrypt Richard van der Hoff 2024-10-09 16:15:25 +01:00
  • 2df359d316 fix(experimental-algorithms) Add missing argument to handle_supported_key_request Andy Balaam 2024-10-21 16:40:54 +01:00
  • 951a4354c6 refactor(timeline): get rid of local_item_by_transaction_id Benjamin Bouvier 2024-10-15 18:08:14 +02:00
  • befcd069c3 FFI: Expose UserIdentity::is_verified and add a new Encryption::user_identity method. (#4142) Doug 2024-10-21 14:36:34 +01:00
  • 0c26988cf5 refactor(base): Remove impl From for SyncTimelineEvent Richard van der Hoff 2024-10-16 17:27:42 +01:00
  • a7f69973c2 feat(sdk): Dropping a UpdatesSubscriber release the reader token for the GC. Ivan Enderlin 2024-10-09 17:39:13 +02:00
  • 1750bf597f test(sdk): Fix a comment. Ivan Enderlin 2024-10-09 15:45:51 +02:00
  • ad677cb6f2 chore(ffi): Add optional canonical_alias field to CreateRoomParameters Jorge Martín 2024-10-18 12:31:45 +02:00
  • 350a26cee9 refactor(crypto): Extract a test helper function for simulating verification Andy Balaam 2024-10-15 16:11:20 +01:00
  • 08152bd9fc refactor(sdk)!: rename PrepareEncryptedFile et al. to UploadEncryptedFile Benjamin Bouvier 2024-10-16 17:31:18 +02:00
  • 89183a3d4b doc(timeline): rejigger a doc comment around sending attachments Benjamin Bouvier 2024-10-16 17:21:39 +02:00
  • 65ed4f3f22 refactor(ffi): push further and inline parse_mime into the same caller Benjamin Bouvier 2024-10-16 17:15:52 +02:00
  • 41d392f899 refactor(ffi): commonize creation of the attachment with a thumbnail Benjamin Bouvier 2024-10-16 17:14:26 +02:00
  • 1ce5160846 refactor(ffi): introduce a parse_mime function to avoid code repetition Benjamin Bouvier 2024-10-16 17:03:36 +02:00
  • dc4c6b4d73 refactor(media): inline update_audio_message_event into its unique caller Benjamin Bouvier 2024-10-16 16:50:47 +02:00
  • 3b33f3779f chore(media): rename upload methods to make their intents clearer Benjamin Bouvier 2024-10-16 16:45:33 +02:00
  • 7089ff51c4 refactor(room): take the transaction id by ownership in with_transaction_id Benjamin Bouvier 2024-10-16 16:40:56 +02:00
  • d8de12561b refactor(media): regroup preparation of the media message after uploading the content Benjamin Bouvier 2024-10-16 16:38:14 +02:00
  • 56edc9d00f chore(media): rename all event content values to content Benjamin Bouvier 2024-10-16 15:41:39 +02:00
  • 2ea114d988 chore(media): reduce indent level of upload_thumbnail by one with let-else Benjamin Bouvier 2024-10-16 15:37:49 +02:00
  • c7708d6154 feature(ffi): Add optional CreateRoomParameters::join_rule_override Jorge Martín 2024-10-17 13:52:15 +02:00
  • bdfe64179b feat(ffi): support custom membership state value in MembershipState Benjamin Bouvier 2024-10-17 11:46:22 +02:00
  • 59c47fb22d fix(ffi): don't panic when running into an unknown membership state Benjamin Bouvier 2024-10-17 10:45:51 +02:00
  • 821fa8fa99 refactor(timeline): don't return a bool in Timeline::edit Benjamin Bouvier 2024-10-17 12:15:45 +02:00
  • a5f1769e28 refactor(timeline): return an invalid local echo state error if a local echo disappeared Benjamin Bouvier 2024-10-17 12:00:02 +02:00
  • 59fce90943 chore(ffi): revert to using a room method to edit if a remote event couldn't be found in the timeline Benjamin Bouvier 2024-10-16 14:37:25 +02:00
  • 81bebcf692 refactor(timeline): fuse edit_by_id() within edit() Benjamin Bouvier 2024-10-15 17:05:28 +02:00