mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-04-17 21:57:57 -04:00
Fixes #5902 ## What this PR does Keeps the existing `Client::send()` demo but extends it with: - A doc comment on `get_profile` explaining the spec behaviour and the 401 condition on (Synapse's `require_auth_for_profile_requests`) - A `get_profile_authenticated()` fallback using `account().fetch_user_profile()` which internally uses `force_auth()`
Matrix SDK Examples
In this folder you find examples for using the matrix-sdk (and its various components) to implement specific common features, each as a separate crate. You can run each of them from the root of the repository, mind you that _ becomes - and the crate names are prefixed with example-. So to run the image bot example you can do cargo run -p example-image-bot.