Commit 469e3c9bbb
Unsigned
Layout: unified · split
src/connection.rs +9 −5
| @@ -7,9 +7,11 @@ use std::{ | ||
| 7 | 7 | time::Duration, |
| 8 | 8 | }; |
| 9 | 9 | |
| 10 | use tokio::sync::mpsc::{channel, Receiver, Sender}; | |
| 11 | 10 | use serde_json::json; |
| 12 | use tokio::runtime::Runtime; | |
| 11 | use tokio::{ | |
| 12 | runtime::Runtime, | |
| 13 | sync::mpsc::{channel, Receiver, Sender}, | |
| 14 | }; | |
| 13 | 15 | |
| 14 | 16 | use tracing::error; |
| 15 | 17 | use uuid::Uuid; |
| @@ -420,9 +422,11 @@ impl Connection { | ||
| 420 | 422 | for room in client.joined_rooms() { |
| 421 | 423 | if channel |
| 422 | 424 | .send(Ok(ClientMessage::RestoredRoom(room))) |
| 423 | .await.is_err() { | |
| 424 | return; | |
| 425 | } | |
| 425 | .await | |
| 426 | .is_err() | |
| 427 | { | |
| 428 | return; | |
| 429 | } | |
| 426 | 430 | } |
| 427 | 431 | } |
| 428 | 432 | } |
src/room/mod.rs +2 −1
| @@ -50,6 +50,7 @@ use unicode_segmentation::UnicodeSegmentation; | ||
| 50 | 50 | use url::Url; |
| 51 | 51 | |
| 52 | 52 | use matrix_sdk::{ |
| 53 | async_trait, | |
| 53 | 54 | events::{ |
| 54 | 55 | room::{ |
| 55 | 56 | member::MemberEventContent, |
| @@ -62,7 +63,7 @@ use matrix_sdk::{ | ||
| 62 | 63 | }, |
| 63 | 64 | identifiers::{EventId, RoomAliasId, RoomId, UserId}, |
| 64 | 65 | uuid::Uuid, |
| 65 | JoinedRoom, async_trait | |
| 66 | JoinedRoom, | |
| 66 | 67 | }; |
| 67 | 68 | |
| 68 | 69 | use weechat::{ |