feat(sync): include history in snapshots

This commit is contained in:
2026-05-16 07:03:59 -04:00
parent b550360a47
commit 80729083eb
9 changed files with 270 additions and 3 deletions
+7 -1
View File
@@ -1,4 +1,4 @@
use std::time::SystemTime;
use std::{num::NonZeroU32, time::SystemTime};
use crate::{ProfileId, SpaceId, TabId, UrlText};
@@ -53,6 +53,12 @@ impl HistoryEntry {
self.visit_count = self.visit_count.saturating_add(1);
}
#[must_use]
pub fn restore(mut entry: Self, visit_count: NonZeroU32) -> Self {
entry.visit_count = visit_count.get();
entry
}
#[must_use]
pub fn profile_id(&self) -> &ProfileId {
&self.profile_id