mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
write version
This commit is contained in:
parent
a34d652a1d
commit
2d43dbded1
1 changed files with 6 additions and 0 deletions
|
|
@ -87,6 +87,9 @@ const newThreadObject = () => {
|
|||
} satisfies ChatThreads[string]
|
||||
}
|
||||
|
||||
const THREAD_VERSION_KEY = 'void.chatThreadVersion'
|
||||
const THREAD_VERSION = 'v1'
|
||||
|
||||
const THREAD_STORAGE_KEY = 'void.chatThreadStorage'
|
||||
|
||||
export interface IChatThreadService {
|
||||
|
|
@ -139,6 +142,9 @@ class ChatThreadService extends Disposable implements IChatThreadService {
|
|||
|
||||
// always be in a thread
|
||||
this.openNewThread()
|
||||
|
||||
// for now just write the version, anticipating bigger changes in the future where we'll want to access this
|
||||
this._storageService.store(THREAD_VERSION_KEY, THREAD_VERSION, StorageScope.APPLICATION, StorageTarget.USER)
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue