Benjamin Bouvier
0feccc7fee
crypto: remove useless call to self.cache in Store::users_for_key_query
...
The store cache can be filled lazily when it's actually needed. It's not needed in this
function here, and may be needed in another function the caller of this function may call
later. No need to preemptively fill the cache here.
2023-10-20 17:04:40 +02:00
Benjamin Bouvier
f580966408
crypto: move Store::mark_user_as_changed to the StoreCache too
2023-10-20 17:04:40 +02:00
Benjamin Bouvier
537ac8a269
crypto: fix test failure
2023-10-20 17:04:40 +02:00
Benjamin Bouvier
65f4cc151c
crypto: move Store::mark_tracked_users_as_changed to StoreCache
2023-10-20 17:04:40 +02:00
Benjamin Bouvier
7c51950167
crypto: move Store::ensure_sync_tracked_users to the StoreCache
2023-10-20 17:04:40 +02:00
Benjamin Bouvier
3030bcbf1e
crypto: introduce a RwLock on the StoreCache
2023-10-20 17:04:40 +02:00
Benjamin Bouvier
3d7a56e468
crypto: remove inner mutable shared state from Account
2023-10-20 17:04:40 +02:00
Benjamin Bouvier
8bfcd20801
crypto: make Account not clonable and the Account in the cache optional
2023-10-20 17:04:40 +02:00
Benjamin Bouvier
3570519c0c
crypto: make StoreCache::account fallible and async
2023-10-20 17:04:40 +02:00
Benjamin Bouvier
a82964ac75
crypto: get rid of test-only OlmMachine::account
2023-10-20 17:04:40 +02:00
Benjamin Bouvier
be96ddb24a
crypto: introduce StoreCache::account() function
2023-10-20 17:04:40 +02:00
Jonas Platte
6d0ed67679
widget: Rename remaining "permissions" to capabilities
...
… a few uppercase Permissions were missed last time.
2023-10-20 13:28:53 +02:00
Jonas Platte
3c74809374
widget: Attach room ID to events from sync
2023-10-20 13:00:43 +02:00
Jonas Platte
fc6549213b
widget: Filter incoming matrix events
2023-10-20 13:00:43 +02:00
Jonas Platte
f937e7d14a
widget: Fix ResponseData type for notify requests
2023-10-20 13:00:43 +02:00
Daniel Abramov
9d8e5a0d08
widget: Add subscribe / unsubscribe event handling
2023-10-20 13:00:43 +02:00
Daniel Abramov
4900089669
widget: Remove obsolete allow(dead_code)
2023-10-20 13:00:43 +02:00
Jonas Platte
a4fd054705
widget: Properly handle matrix driver request errors
...
Co-authored-by: Daniel Abramov <daniel.abramov@element.io >
2023-10-20 12:05:03 +02:00
Daniel Abramov
685c51b3af
widget: Add OpenID request handling
2023-10-20 12:05:03 +02:00
Jonas Platte
70b8ac425f
widget: Fix name, response fields of capabilities request
2023-10-20 09:56:36 +02:00
Jonas Platte
7582b4fda9
widget: Fix field name in supported-versions response
2023-10-20 09:56:36 +02:00
Jonas Platte
a2d05ed002
widget: Remove unnecessary type wrapping
...
… and move some types around.
2023-10-20 09:56:36 +02:00
Jonas Platte
489d699cc5
widget: Remove unused Serialize implementation
2023-10-20 09:56:36 +02:00
Jonas Platte
561db87b64
widget: Add integration tests for sending events
2023-10-19 15:25:53 +02:00
Jonas Platte
4982f87c59
widget: Add support for send-event fromWidget requests
...
Co-authored-by: Daniel Abramov <daniel.abramov@element.io >
2023-10-19 15:25:53 +02:00
Jonas Platte
14cf923361
widget: Add tests for event reading requests
2023-10-19 13:01:57 +02:00
Jonas Platte
3ce7126d58
widget: Add support for read-state-event fromWidget requests
...
Co-authored-by: Daniel Abramov <daniel.abramov@element.io >
2023-10-19 13:01:57 +02:00
Jonas Platte
946976a561
widget: Add EventFilter::matches_state_event_with_any_state_key
2023-10-19 13:01:57 +02:00
Jonas Platte
e58ee3bcf1
widget: Fix copy-paste comment error
2023-10-19 13:01:57 +02:00
Jonas Platte
c0985942dd
widget: Actually add request ID to process_from_widget_request span
2023-10-19 13:01:57 +02:00
Jonas Platte
3b4108e519
widget: Add Deserialize impl for StateKeySelector
2023-10-19 13:01:57 +02:00
dependabot[bot]
70524e2f5c
build(deps): bump rustix from 0.37.24 to 0.37.25
...
Bumps [rustix](https://github.com/bytecodealliance/rustix ) from 0.37.24 to 0.37.25.
- [Release notes](https://github.com/bytecodealliance/rustix/releases )
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.37.24...v0.37.25 )
---
updated-dependencies:
- dependency-name: rustix
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-19 11:58:24 +02:00
Jonas Platte
d5bda8147f
ffi: Remove _blocking functions
...
Except for full_room_blocking, which is apparently noticably faster.
They were only added as a workaround for a UniFFI bug that has now been
fixed.
2023-10-19 07:56:06 +02:00
Jonas Platte
02a0916bc2
widget: Rename "permissions" to "capabilities"
...
… to match the postMessage JSON API.
2023-10-18 18:17:31 +02:00
Jonas Platte
01ec91bda4
widget: Rename Capabilities to CapabilitiesState
...
… and move the None case into it to avoid having to wrap it in Option.
2023-10-18 18:17:31 +02:00
Jonas Platte
12db7516ef
widget: Add get_supported_api_versions support
...
Co-authored-by: Timo K <timok@element.io >
2023-10-18 15:52:00 +00:00
Jonas Platte
af71d831c6
Fix 'verifying' typos
2023-10-18 17:50:51 +02:00
Daniel Abramov
b623c7c357
widget: Complete ContentLoaded implementation
...
And cover it with tests.
2023-10-18 16:44:03 +02:00
Mauro Romito
5f0e5c7407
added the with_mentions method
2023-10-18 15:42:14 +02:00
Jonas Platte
2c80307e53
widget: Add content_loaded initialization
2023-10-18 15:03:58 +02:00
Jonas Platte
1aef675a97
widget: Fix a small error in test code
2023-10-18 15:03:58 +02:00
Jonas Platte
ea36eaa09a
widget: Implement fromWidget response sending
...
… and send an error response when the request fails to deserialize.
2023-10-18 15:03:58 +02:00
Jonas Platte
9c71c2b733
widget: Rename process_message_from_widget to process_widget_message
...
… to make it clearer that it's not specifically about fromWidget messages.
2023-10-18 15:03:58 +02:00
Jonas Platte
46a8f4e841
widget: Clean up json! indentation in test
2023-10-18 15:03:58 +02:00
Daniel Abramov
eb5f05d8c5
widget: Add missing driver requests
2023-10-18 14:44:46 +02:00
Jonas Platte
29fc3d0289
widget: Shorten tracing instrument args
2023-10-18 13:26:51 +02:00
Daniel Abramov
04fcc0bb87
widget: split parsing of common widget header
2023-10-18 13:26:51 +02:00
Daniel Abramov
77bae6f421
widget: add a note to the error handling
2023-10-18 13:26:51 +02:00
Daniel Abramov
a99cb7c30f
widget: move things around in function (chore)
...
So that most important functions (public interface) come first.
2023-10-18 13:26:51 +02:00
Daniel Abramov
6363cd5902
widget: extract capability negotiation into fn
...
We will need to re-use it when processing the `ContentLoaded` message
from a widget.
2023-10-18 13:26:51 +02:00