Partial AppState rewrite

This commit is contained in:
micialware committed 2026-08-31 11:46:35 +03:00
1 parent 29a90d48d9
commit 0c4aec3dc0
13 files changed
+75 -49

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ impl NavigatedPage<HistoryMessage> for HistoryState {
}
impl HistoryState {
pub fn new(id: crate::data::Id, state: Arc<Mutex<AppState>>) -> Self {
pub fn new(id: crate::data::Id, state: AppState) -> Self {
let state = state.lock();
let history = get_history_of_set(id).unwrap_or_default();
let words = history