Commit bf5d641856

bf5d64185676de23f8c66b7f01e509d15f2d917d

parent: bd1ec739ef

Unsigned

Damir Jelić <poljar@termina.org.uk> · 2020-03-14 09:30 UTC

Cargo.toml: Update to the encryption branch of the rust-sdk.

Layout: unified · split

Cargo.toml +6 −2
@@ -16,7 +16,11 @@ tokio = { version = "0.2.13", features = [ "rt-threaded" ] }
1616async-std = { version = "1.5.0", features = [ "unstable" ] }
1717clap = "2.33.0"
1818
19matrix-sdk = { git = "https://github.com/matrix-org/matrix-rust-sdk" }
20
2119weechat = { git = "https://github.com/poljar/rust-weechat", features = ["async-executor"] }
2220weechat-sys = { git = "https://github.com/poljar/rust-weechat" }
21
22[dependencies.matrix-sdk]
23git = "https://github.com/matrix-org/matrix-rust-sdk/"
24branch = "encryption"
25default-features = false
26features = ["encryption"]
src/server.rs +2 −2
@@ -475,7 +475,7 @@ impl MatrixServer {
475475 mut client: AsyncClient,
476476 channel: Sender<Result<ThreadMessage, String>>,
477477 ) {
478 if !client.logged_in() {
478 if !client.logged_in().await {
479479 let ret = client.login("example", "wordpass", None).await;
480480
481481 match ret {
@@ -491,7 +491,7 @@ impl MatrixServer {
491491 }
492492 }
493493
494 let sync_token = client.sync_token();
494 let sync_token = client.sync_token().await;
495495 let sync_settings = SyncSettings::new()
496496 .timeout(DEFAULT_SYNC_TIMEOUT)
497497 .expect("Invalid sync timeout");