Include a busy
field in proto::Contact
This commit is contained in:
parent
e82320cde8
commit
d7cea646fc
5 changed files with 291 additions and 71 deletions
|
@ -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,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue