conf/accounts.rs: add hash() method

This commit is contained in:
Manos Pitsidianakis 2020-07-24 22:08:09 +03:00
parent 688060ceb6
commit d6ef3567f4
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

View File

@ -1010,6 +1010,10 @@ impl Account {
&self.name
}
pub fn hash(&self) -> AccountHash {
self.hash
}
pub fn load(&mut self, mailbox_hash: MailboxHash) -> result::Result<(), usize> {
if mailbox_hash == 0 {
return Err(0);