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" ] }
16async-std = { version = "1.5.0", features = [ "unstable" ] } 16async-std = { version = "1.5.0", features = [ "unstable" ] }
17clap = "2.33.0" 17clap = "2.33.0"
18 18
19matrix-sdk = { git = "https://github.com/matrix-org/matrix-rust-sdk" }
20
21weechat = { git = "https://github.com/poljar/rust-weechat", features = ["async-executor"] } 19weechat = { git = "https://github.com/poljar/rust-weechat", features = ["async-executor"] }
22weechat-sys = { git = "https://github.com/poljar/rust-weechat" } 20weechat-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 {
475 mut client: AsyncClient, 475 mut client: AsyncClient,
476 channel: Sender<Result<ThreadMessage, String>>, 476 channel: Sender<Result<ThreadMessage, String>>,
477 ) { 477 ) {
478 if !client.logged_in() { 478 if !client.logged_in().await {
479 let ret = client.login("example", "wordpass", None).await; 479 let ret = client.login("example", "wordpass", None).await;
480 480
481 match ret { 481 match ret {
@@ -491,7 +491,7 @@ impl MatrixServer {
491 } 491 }
492 } 492 }
493 493
494 let sync_token = client.sync_token(); 494 let sync_token = client.sync_token().await;
495 let sync_settings = SyncSettings::new() 495 let sync_settings = SyncSettings::new()
496 .timeout(DEFAULT_SYNC_TIMEOUT) 496 .timeout(DEFAULT_SYNC_TIMEOUT)
497 .expect("Invalid sync timeout"); 497 .expect("Invalid sync timeout");