damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 0bbc2c6348428fa43c830dac2eb22b328c9d8830
parent c44c0d08631566e7e9ba955a48ba4fd8db3e8b6c
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 26 Aug 2023 21:58:37 -0700

ndb: save in documents instead of cache dir

This is more long term storage

Diffstat:
Mnostrdb/Ndb.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nostrdb/Ndb.swift b/nostrdb/Ndb.swift @@ -11,7 +11,7 @@ class Ndb { let ndb: ndb_t static var db_path: String { - (FileManager.default.urls(for: .cachesDirectory, in: .userDomainMask).first?.absoluteString.replacingOccurrences(of: "file://", with: ""))! + (FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first?.absoluteString.replacingOccurrences(of: "file://", with: ""))! } init?() {