Jonas Platte
b5d7f10c6b
feature: Introduce a login builder API
...
This improves the readability of login calls.
The old login API is kept, but deprecated.
2022-06-22 17:17:52 +02:00
Jonas Platte
a4e4bfe833
refactor(sdk)!: Change store builder methods from Box<dyn Trait> to impl Trait
...
To migrate, don't box the store before passing it to `builder.state_store` or
`builder.crypto_store` (remove `Box::new`).
2022-06-17 14:59:22 +02:00
Jonas Platte
445b2e627d
style: Remove usage of assign! macro from examples
2022-06-07 21:07:34 +02:00
Julian Sparber
39b1fff218
Merge remote-tracking branch 'origin/main' into user_once_cell_for_session
2022-05-27 15:53:22 +02:00
Jonas Platte
d6c6211c00
chore: Use matrix_sdk::Result alias more
2022-05-20 07:52:39 +02:00
Jonas Platte
1b569a8fd4
chore: Consistently use anyhow::Result for example main fn's
...
When an `Err` is propagated out of `main`, it will be printed using
`Debug`, which is much easier to read in anyhow::Error's case. See also
https://docs.rs/anyhow/latest/anyhow/struct.Error.html#display-representations
2022-05-20 07:52:39 +02:00
Julian Sparber
1de27bcc0c
Fix CI and address requested changes
2022-05-17 12:22:35 +02:00
Benjamin Kampmann
ab87013125
chore: make wasm-example non-publish
2022-05-10 15:10:01 +02:00
Benjamin Kampmann
d2f251b2d5
chore: version and path fixes for releasing
2022-05-09 20:11:10 +02:00
Benjamin Kampmann
5fce18f4dd
chore: remove unneccessary feature-flag
2022-05-05 11:21:34 +02:00
Benjamin Kampmann
7b21166784
chore: Merge remote-tracking branch 'origin/main' into b-featureflag-timeline
2022-05-04 16:17:06 +02:00
Benjamin Kampmann
fdcbd59557
fix(SDK): Put timeline behind a feature-flag
2022-05-04 12:55:01 +02:00
Benjamin Kampmann
32cd372f49
Merge remote-tracking branch 'origin/main' into ben-feature-fixup
2022-05-02 13:30:42 +02:00
Jonas Platte
08fd85ea09
chore: Upgrade Ruma
2022-04-26 11:40:54 +02:00
Benjamin Kampmann
a0ba610e0b
fixing wasm example
2022-04-20 16:35:55 +02:00
Benjamin Kampmann
b29a50bed5
moving make_store_config features back to sled, fxies #562
2022-04-20 14:36:11 +02:00
Jonas Platte
ad538f3f28
Upgrade Ruma
2022-04-12 14:39:30 +02:00
Damir Jelić
b9f415e81e
chore(sdk): Fix some clippy lints in the wasm example
2022-04-05 14:47:01 +02:00
Damir Jelić
f2e2976496
fix(sdk): Make the wasm_command_bot example compile and work
...
This patch does a couple of things:
1. Fix the compilation of the example, Message -> MessageLike
2. Update Webpack and friends for the example
3. Remove futures-timer's Delay method and use equivalent methods from
Tokio and wasm-timers.
The last point was needed because futures-timer would end up triggering
this error:
ReferenceError: can't access lexical declaration '__wbg_clearTimeout_d8b36ad8fa330187' before initialization
2022-04-05 14:02:07 +02:00
Julian Sparber
8807a2abaf
Add example to print the room history
2022-03-31 14:37:38 +02:00
Damir Jelić
f5d2ea0efa
fix(sdk): Use a consistent naming scheme for our features
2022-03-30 10:26:38 +02:00
Jonas Platte
db9b3febd3
Upgrade Ruma
2022-03-28 17:54:06 +02:00
Jonas Platte
718fa18e7f
Merge branch 'main' into jplatte/client-builder
2022-03-14 11:26:45 +01:00
Jonas Platte
147e948fe6
Replace ClientConfig with ClientBuilder
...
This includes a few not-strictly-related changes that made sense to do at the
same time:
* Check for a functioning homeserver via get_supported_versions regardless of
whether a homeserver URL or user ID was supplied
* Rename use_discovery_response to respect_login_well_known
* Small appservice documentation improvement because those docs had to be
touched anyways
* Some test refactorings in tests that had to be touched anyways
2022-03-13 19:56:26 +01:00
Kévin Commaille
d8c7fbd9dc
sdk: Create Encryption struct
...
Lower the API surface of Client
2022-03-12 13:30:55 +01:00
Jonas Platte
e60b07336d
Rename Client::{new_with_config => with_config}
2022-03-11 12:36:08 +01:00
Kévin Commaille
ad31540b10
sdk: Don't enable store encryption by default
2022-03-10 17:28:34 +01:00
Kévin Commaille
0ea12b3b4a
base: Separate store config from the client config
2022-03-10 17:15:18 +01:00
Kévin Commaille
28a83da421
sdk: Remove default store constructors
2022-03-10 17:15:14 +01:00
Jonas Platte
2c181bca4f
Consistently use .to_owned() instead of .to_string() for &str => String
2022-03-09 12:41:57 +01:00
Jonas Platte
b67c51c267
Remove unnecessary double reference
2022-03-09 12:41:57 +01:00
Benjamin Kampmann
fd6f4385d4
Merge remote-tracking branch 'origin/main' into ben-splitting-out-store-impls
2022-03-03 12:57:00 +01:00
Jonas Platte
1f2fd380b2
Upgrade Ruma to 0.5.0
2022-03-03 08:59:44 +01:00
Benjamin Kampmann
12cf187e51
indexeddb store and passphrase opening
2022-02-23 21:07:39 +01:00
Benjamin Kampmann
ed0974eba3
re-integrate sled and indexeddb stores into base
2022-02-23 19:38:35 +01:00
Kévin Commaille
409afc6684
feat(sdk): Create AttachmentConfig struct
2022-02-15 18:15:59 +01:00
Kévin Commaille
0436780292
feat(sdk): Allow to add info and thumbnail to attachments
2022-02-15 18:15:58 +01:00
Jonas Platte
c3d9c73d00
Make identifier parsing easier to read
...
… by using `Id::parse` instead of `Box::<Id>::try_from`.
2022-02-12 04:20:37 +01:00
Benjamin Kampmann
e2c6dc33fb
Merge remote-tracking branch 'upstream/main' into ben-wasm-store
2022-02-02 12:16:49 +01:00
Jonas Platte
2f67b62509
Unbreak wasm_command_bot compilation
2022-02-01 15:08:02 +01:00
Jonas Platte
8dec390258
Upgrade Ruma
2022-02-01 15:08:01 +01:00
Benjamin Kampmann
afaeae8e6b
unify indexeddb-features and improve example build
2021-12-01 12:57:09 +01:00
Benjamin Kampmann
9b7c1d7c4d
Merge remote-tracking branch 'upstream/main' into ben-wasm-store
2021-11-30 18:40:14 +01:00
Jonas Platte
36db5e47dd
Upgrade Ruma
2021-11-26 19:22:54 +01:00
Damir Jelić
f2c344b39a
fix(crypto): Use the DeviceKeys as the inner type for a ReadOnlyDevice
2021-11-26 16:26:40 +01:00
Benjamin Kampmann
42680164ea
fix up CI test
2021-11-25 15:49:20 +01:00
Benjamin Kampmann
9835c4ad92
Update to webpack5
2021-11-24 11:00:52 +01:00
Benjamin Kampmann
10d4fe53f2
clarify API
2021-11-18 15:01:07 +01:00
Benjamin Kampmann
5bba24ce77
activating browser tests
2021-11-17 18:18:20 +01:00
Benjamin Kampmann
8a2732ab5d
first steps
2021-11-15 20:05:43 +01:00