Started implementing Chatenium Pictures

This commit is contained in:
2026-04-12 17:40:51 +02:00
parent 62bc82f158
commit c56b0aab8a
17 changed files with 332 additions and 13 deletions

View File

@@ -6,7 +6,7 @@ import {DatabaseAPI} from '@chatenium/chatenium-sdk/storage/database';
providedIn: 'root'
})
export class IndexedDB {
private dbVersion = 2
private dbVersion = 3
private db: IDBDatabase | null = null
getApi(): DatabaseAPI {
@@ -36,6 +36,7 @@ export class IndexedDB {
db.createObjectStore('files', { keyPath: 'id' })
db.createObjectStore('messages', { keyPath: 'id' })
db.createObjectStore('networkmessages', { keyPath: 'id' })
db.createObjectStore('pictures', { keyPath: 'id' })
}
request.onsuccess = (event: Event) => {