Fix suffixes in room list
This commit is contained in:
parent
075a9b266e
commit
4da132b5bb
2 changed files with 20 additions and 6 deletions
|
|
@ -41,6 +41,14 @@ impl EuphRoom {
|
|||
self.room = None;
|
||||
}
|
||||
|
||||
pub fn connected(&self) -> bool {
|
||||
if let Some(room) = &self.room {
|
||||
!room.stopped()
|
||||
} else {
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
pub fn retain(&mut self) {
|
||||
if let Some(room) = &self.room {
|
||||
if room.stopped() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue