From f9c8878d0239d18c543d55b55420aba3bccb4e00 Mon Sep 17 00:00:00 2001 From: Taksh Date: Fri, 31 Jul 2026 11:49:26 +0300 Subject: [PATCH] fix: import BitFoundation so ComposerDraftStore sees PeerID iOS target build failed without the module import that SPM resolved transitively but Xcode did not. Also keep the eviction test inside the test suite type. --- bitchat/Services/ComposerDraftStore.swift | 1 + bitchatTests/Services/ComposerDraftStoreTests.swift | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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..