chore: Update matrix-sdk

This commit is contained in:
Kévin Commaille 2023-03-30 15:03:39 +02:00
parent 7154cd1275
commit 123ac8661b
No known key found for this signature in database
GPG key ID: DD507DAE96E8245C
3 changed files with 45 additions and 55 deletions

90
Cargo.lock generated
View file

@ -208,12 +208,6 @@ dependencies = [
"event-listener", "event-listener",
] ]
[[package]]
name = "async-once-cell"
version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b49bd4c5b769125ea6323601c39815848972880efd33ffb2d01f9f909adc699"
[[package]] [[package]]
name = "async-process" name = "async-process"
version = "1.6.0" version = "1.6.0"
@ -402,12 +396,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]] [[package]]
name = "bitmaps" name = "bitmaps"
version = "2.1.0" version = "3.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "031043d04099746d8db04daf1fa424b2bc8bd69d92b25962dcde24da39ab64a2" checksum = "703642b98a00b3b90513279a8ede3fcfa479c126c5fb46e78f3051522f021403"
dependencies = [
"typenum",
]
[[package]] [[package]]
name = "blake3" name = "blake3"
@ -1157,12 +1148,12 @@ dependencies = [
[[package]] [[package]]
name = "eyeball-im" name = "eyeball-im"
version = "0.1.1" version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5240948c0d831a678fcfc10439d3f202088723e38e14bccbdbb6a3b61c54d1ab" checksum = "29e6dff0ac9894dcc183064377dfeb4137bcffa9f9ec3dbc10f8e7fba34c0ac7"
dependencies = [ dependencies = [
"futures-core", "futures-core",
"im", "imbl",
"tokio", "tokio",
"tokio-stream", "tokio-stream",
] ]
@ -2361,21 +2352,6 @@ dependencies = [
"unicode-normalization", "unicode-normalization",
] ]
[[package]]
name = "im"
version = "15.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d0acd33ff0285af998aaf9b57342af478078f53492322fafc47450e09397e0e9"
dependencies = [
"bitmaps",
"rand_core 0.6.4",
"rand_xoshiro",
"serde",
"sized-chunks",
"typenum",
"version_check",
]
[[package]] [[package]]
name = "image" name = "image"
version = "0.23.14" version = "0.23.14"
@ -2409,6 +2385,29 @@ dependencies = [
"tiff", "tiff",
] ]
[[package]]
name = "imbl"
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2806b69cd9f4664844027b64465eacb444c67c1db9c778e341adff0c25cdb0d"
dependencies = [
"bitmaps",
"imbl-sized-chunks",
"rand_core 0.6.4",
"rand_xoshiro",
"serde",
"version_check",
]
[[package]]
name = "imbl-sized-chunks"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6957ea0b2541c5ca561d3ef4538044af79f8a05a1eb3a3b148936aaceaa1076"
dependencies = [
"bitmaps",
]
[[package]] [[package]]
name = "indexed_db_futures" name = "indexed_db_futures"
version = "0.3.0" version = "0.3.0"
@ -2827,10 +2826,9 @@ dependencies = [
[[package]] [[package]]
name = "matrix-sdk" name = "matrix-sdk"
version = "0.6.2" version = "0.6.2"
source = "git+https://github.com/matrix-org/matrix-rust-sdk.git?rev=7794b230e1a5a1c8cb6b050b8c947595cb74c8e7#7794b230e1a5a1c8cb6b050b8c947595cb74c8e7" source = "git+https://github.com/matrix-org/matrix-rust-sdk.git?rev=48b67759eded88e26db71a85b4ea8b7e3a153fcd#48b67759eded88e26db71a85b4ea8b7e3a153fcd"
dependencies = [ dependencies = [
"anymap2", "anymap2",
"async-once-cell",
"async-stream", "async-stream",
"async-trait", "async-trait",
"backoff", "backoff",
@ -2846,8 +2844,8 @@ dependencies = [
"gloo-timers", "gloo-timers",
"http", "http",
"hyper", "hyper",
"im",
"image 0.24.6", "image 0.24.6",
"imbl",
"indexmap", "indexmap",
"matrix-sdk-base", "matrix-sdk-base",
"matrix-sdk-common", "matrix-sdk-common",
@ -2874,7 +2872,7 @@ dependencies = [
[[package]] [[package]]
name = "matrix-sdk-base" name = "matrix-sdk-base"
version = "0.6.1" version = "0.6.1"
source = "git+https://github.com/matrix-org/matrix-rust-sdk.git?rev=7794b230e1a5a1c8cb6b050b8c947595cb74c8e7#7794b230e1a5a1c8cb6b050b8c947595cb74c8e7" source = "git+https://github.com/matrix-org/matrix-rust-sdk.git?rev=48b67759eded88e26db71a85b4ea8b7e3a153fcd#48b67759eded88e26db71a85b4ea8b7e3a153fcd"
dependencies = [ dependencies = [
"async-stream", "async-stream",
"async-trait", "async-trait",
@ -2890,6 +2888,7 @@ dependencies = [
"serde", "serde",
"serde_json", "serde_json",
"thiserror", "thiserror",
"tokio",
"tracing", "tracing",
"zeroize", "zeroize",
] ]
@ -2897,9 +2896,8 @@ dependencies = [
[[package]] [[package]]
name = "matrix-sdk-common" name = "matrix-sdk-common"
version = "0.6.0" version = "0.6.0"
source = "git+https://github.com/matrix-org/matrix-rust-sdk.git?rev=7794b230e1a5a1c8cb6b050b8c947595cb74c8e7#7794b230e1a5a1c8cb6b050b8c947595cb74c8e7" source = "git+https://github.com/matrix-org/matrix-rust-sdk.git?rev=48b67759eded88e26db71a85b4ea8b7e3a153fcd#48b67759eded88e26db71a85b4ea8b7e3a153fcd"
dependencies = [ dependencies = [
"async-lock",
"futures-core", "futures-core",
"futures-util", "futures-util",
"gloo-timers", "gloo-timers",
@ -2914,7 +2912,7 @@ dependencies = [
[[package]] [[package]]
name = "matrix-sdk-crypto" name = "matrix-sdk-crypto"
version = "0.6.0" version = "0.6.0"
source = "git+https://github.com/matrix-org/matrix-rust-sdk.git?rev=7794b230e1a5a1c8cb6b050b8c947595cb74c8e7#7794b230e1a5a1c8cb6b050b8c947595cb74c8e7" source = "git+https://github.com/matrix-org/matrix-rust-sdk.git?rev=48b67759eded88e26db71a85b4ea8b7e3a153fcd#48b67759eded88e26db71a85b4ea8b7e3a153fcd"
dependencies = [ dependencies = [
"aes", "aes",
"async-std", "async-std",
@ -2942,6 +2940,7 @@ dependencies = [
"sha2 0.10.6", "sha2 0.10.6",
"thiserror", "thiserror",
"tokio", "tokio",
"tokio-stream",
"tracing", "tracing",
"vodozemac", "vodozemac",
"zeroize", "zeroize",
@ -2950,7 +2949,7 @@ dependencies = [
[[package]] [[package]]
name = "matrix-sdk-indexeddb" name = "matrix-sdk-indexeddb"
version = "0.2.0" version = "0.2.0"
source = "git+https://github.com/matrix-org/matrix-rust-sdk.git?rev=7794b230e1a5a1c8cb6b050b8c947595cb74c8e7#7794b230e1a5a1c8cb6b050b8c947595cb74c8e7" source = "git+https://github.com/matrix-org/matrix-rust-sdk.git?rev=48b67759eded88e26db71a85b4ea8b7e3a153fcd#48b67759eded88e26db71a85b4ea8b7e3a153fcd"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"async-trait", "async-trait",
@ -2967,6 +2966,7 @@ dependencies = [
"serde", "serde",
"serde_json", "serde_json",
"thiserror", "thiserror",
"tokio",
"tracing", "tracing",
"wasm-bindgen", "wasm-bindgen",
"web-sys", "web-sys",
@ -2975,7 +2975,7 @@ dependencies = [
[[package]] [[package]]
name = "matrix-sdk-qrcode" name = "matrix-sdk-qrcode"
version = "0.4.0" version = "0.4.0"
source = "git+https://github.com/matrix-org/matrix-rust-sdk.git?rev=7794b230e1a5a1c8cb6b050b8c947595cb74c8e7#7794b230e1a5a1c8cb6b050b8c947595cb74c8e7" source = "git+https://github.com/matrix-org/matrix-rust-sdk.git?rev=48b67759eded88e26db71a85b4ea8b7e3a153fcd#48b67759eded88e26db71a85b4ea8b7e3a153fcd"
dependencies = [ dependencies = [
"base64 0.21.0", "base64 0.21.0",
"byteorder", "byteorder",
@ -2988,7 +2988,7 @@ dependencies = [
[[package]] [[package]]
name = "matrix-sdk-sled" name = "matrix-sdk-sled"
version = "0.2.0" version = "0.2.0"
source = "git+https://github.com/matrix-org/matrix-rust-sdk.git?rev=7794b230e1a5a1c8cb6b050b8c947595cb74c8e7#7794b230e1a5a1c8cb6b050b8c947595cb74c8e7" source = "git+https://github.com/matrix-org/matrix-rust-sdk.git?rev=48b67759eded88e26db71a85b4ea8b7e3a153fcd#48b67759eded88e26db71a85b4ea8b7e3a153fcd"
dependencies = [ dependencies = [
"async-stream", "async-stream",
"async-trait", "async-trait",
@ -3012,7 +3012,7 @@ dependencies = [
[[package]] [[package]]
name = "matrix-sdk-store-encryption" name = "matrix-sdk-store-encryption"
version = "0.2.0" version = "0.2.0"
source = "git+https://github.com/matrix-org/matrix-rust-sdk.git?rev=7794b230e1a5a1c8cb6b050b8c947595cb74c8e7#7794b230e1a5a1c8cb6b050b8c947595cb74c8e7" source = "git+https://github.com/matrix-org/matrix-rust-sdk.git?rev=48b67759eded88e26db71a85b4ea8b7e3a153fcd#48b67759eded88e26db71a85b4ea8b7e3a153fcd"
dependencies = [ dependencies = [
"blake3", "blake3",
"chacha20poly1305", "chacha20poly1305",
@ -4501,16 +4501,6 @@ version = "0.3.10"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de" checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de"
[[package]]
name = "sized-chunks"
version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "16d69225bde7a69b235da73377861095455d298f2b970996eec25ddbb42b3d1e"
dependencies = [
"bitmaps",
"typenum",
]
[[package]] [[package]]
name = "slab" name = "slab"
version = "0.4.8" version = "0.4.8"

View file

@ -28,7 +28,7 @@ ashpd = { version = "0.4", default-features = false, features = [
] } ] }
async-stream = "0.3" async-stream = "0.3"
djb_hash = "0.1" djb_hash = "0.1"
eyeball-im = "0.1" eyeball-im = "0.2"
futures = "0.3" futures = "0.3"
geo-uri = "0.2" geo-uri = "0.2"
gettext-rs = { version = "0.7", features = ["gettext-system"] } gettext-rs = { version = "0.7", features = ["gettext-system"] }
@ -77,7 +77,7 @@ features = ["v4_10"]
[dependencies.matrix-sdk] [dependencies.matrix-sdk]
git = "https://github.com/matrix-org/matrix-rust-sdk.git" git = "https://github.com/matrix-org/matrix-rust-sdk.git"
rev = "7794b230e1a5a1c8cb6b050b8c947595cb74c8e7" rev = "48b67759eded88e26db71a85b4ea8b7e3a153fcd"
features = [ features = [
"socks", "socks",
"sso-login", "sso-login",
@ -89,7 +89,7 @@ features = [
[dependencies.matrix-sdk-sled] [dependencies.matrix-sdk-sled]
git = "https://github.com/matrix-org/matrix-rust-sdk.git" git = "https://github.com/matrix-org/matrix-rust-sdk.git"
rev = "7794b230e1a5a1c8cb6b050b8c947595cb74c8e7" rev = "48b67759eded88e26db71a85b4ea8b7e3a153fcd"
features = ["crypto-store"] features = ["crypto-store"]
[dependencies.ruma] [dependencies.ruma]

View file

@ -10,7 +10,7 @@ use matrix_sdk::{
}, },
assign, assign,
}, },
HttpError, Error,
}; };
use ruma::events::{room::encryption::RoomEncryptionEventContent, InitialStateEvent}; use ruma::events::{room::encryption::RoomEncryptionEventContent, InitialStateEvent};
@ -217,7 +217,7 @@ impl RoomCreation {
} }
/// Display the error that occurred during creation. /// Display the error that occurred during creation.
fn handle_error(&self, error: HttpError) { fn handle_error(&self, error: Error) {
let imp = self.imp(); let imp = self.imp();
imp.create_button.set_loading(false); imp.create_button.set_loading(false);