Avoid trying to reconnect to a room if client is signed out

This commit is contained in:
Antonio Scandurra 2023-02-23 14:53:10 +01:00
parent 9334267bd0
commit 59a66190e5
2 changed files with 28 additions and 21 deletions

View file

@ -179,6 +179,10 @@ impl Status {
pub fn is_connected(&self) -> bool {
matches!(self, Self::Connected { .. })
}
pub fn is_signed_out(&self) -> bool {
matches!(self, Self::SignedOut | Self::UpgradeRequired)
}
}
struct ClientState {