Include a busy field in proto::Contact

This commit is contained in:
Antonio Scandurra 2022-10-07 12:21:56 +02:00
parent e82320cde8
commit d7cea646fc
5 changed files with 291 additions and 71 deletions

View file

@ -39,6 +39,7 @@ impl Eq for User {}
pub struct Contact {
pub user: Arc<User>,
pub online: bool,
pub busy: bool,
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
@ -625,6 +626,7 @@ impl Contact {
Ok(Self {
user,
online: contact.online,
busy: contact.busy,
})
}
}