Fix suffixes in room list

This commit is contained in:
Joscha 2022-06-28 10:32:10 +02:00
parent 075a9b266e
commit 4da132b5bb
2 changed files with 20 additions and 6 deletions

View file

@ -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() {