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