Implement Android Home activity and HTTPS synchronization (#97)
This commit is contained in:
1 parent
8c9341f214
commit
5c933a99a3
29 files changed
+2008
-110
No files matched your search
@@ -439,7 +439,11 @@ impl<'a> MobileTotpService<'a> {
|
||||
.entries
|
||||
.into_iter()
|
||||
.filter(|(_, record)| record.is_totp)
|
||||
.filter_map(|(path, _)| EntryPath::parse(&path).ok())
|
||||
.filter_map(|(path, record)| {
|
||||
let path = EntryPath::parse(&path).ok()?;
|
||||
let ciphertext = self.repository.read_entry(&path).ok()?;
|
||||
(digest(ciphertext.as_bytes()) == record.ciphertext_hash).then_some(path)
|
||||
})
|
||||
.filter(|path| query.is_empty() || path.to_string().to_lowercase().contains(&query))
|
||||
.map(|path| cached_row(&path, shared.contains(&path)))
|
||||
.collect();
|
||||
|
||||
Reference in new issue
Block a user