diff --git a/bitchat/Services/ComposerDraftStore.swift b/bitchat/Services/ComposerDraftStore.swift index 871a9bca..9c62bcdd 100644 --- a/bitchat/Services/ComposerDraftStore.swift +++ b/bitchat/Services/ComposerDraftStore.swift @@ -7,6 +7,7 @@ // import Foundation +import BitFoundation /// Persists unfinished composer text per conversation so switching mesh / /// geohash / DM channels does not silently discard what someone was typing. diff --git a/bitchatTests/Services/ComposerDraftStoreTests.swift b/bitchatTests/Services/ComposerDraftStoreTests.swift index 4677f263..39436eee 100644 --- a/bitchatTests/Services/ComposerDraftStoreTests.swift +++ b/bitchatTests/Services/ComposerDraftStoreTests.swift @@ -61,12 +61,15 @@ struct ComposerDraftStoreTests { #expect(ComposerDraftStore.load(.mesh, in: defaults).isEmpty) #expect(defaults.object(forKey: ComposerDraftStore.storageKey) == nil) } -} @Test func maxDraftCountEvictsSurplusKeys() { let defaults = makeDefaults() for index in 0..