From 51d8e3cb66a080c1b803ca35bd0b7fe25850a0fb Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Thu, 12 Aug 2021 11:05:55 -0700 Subject: [PATCH] Start migrating OperationStore to TypeScript --- src/matrix/storage/idb/Transaction.js | 2 +- src/matrix/storage/idb/schema.js | 2 +- .../storage/idb/stores/{OperationStore.js => OperationStore.ts} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename src/matrix/storage/idb/stores/{OperationStore.js => OperationStore.ts} (100%) diff --git a/src/matrix/storage/idb/Transaction.js b/src/matrix/storage/idb/Transaction.js index 239293c6..93690017 100644 --- a/src/matrix/storage/idb/Transaction.js +++ b/src/matrix/storage/idb/Transaction.js @@ -32,7 +32,7 @@ import {OlmSessionStore} from "./stores/OlmSessionStore"; import {InboundGroupSessionStore} from "./stores/InboundGroupSessionStore"; import {OutboundGroupSessionStore} from "./stores/OutboundGroupSessionStore"; import {GroupSessionDecryptionStore} from "./stores/GroupSessionDecryptionStore"; -import {OperationStore} from "./stores/OperationStore.js"; +import {OperationStore} from "./stores/OperationStore"; import {AccountDataStore} from "./stores/AccountDataStore.js"; export class Transaction { diff --git a/src/matrix/storage/idb/schema.js b/src/matrix/storage/idb/schema.js index d0d9cf16..7df2cb3e 100644 --- a/src/matrix/storage/idb/schema.js +++ b/src/matrix/storage/idb/schema.js @@ -2,7 +2,7 @@ import {iterateCursor, reqAsPromise} from "./utils"; import {RoomMember, EVENT_TYPE as MEMBER_EVENT_TYPE} from "../../room/members/RoomMember.js"; import {RoomMemberStore} from "./stores/RoomMemberStore"; import {SessionStore} from "./stores/SessionStore"; -import {encodeScopeTypeKey} from "./stores/OperationStore.js"; +import {encodeScopeTypeKey} from "./stores/OperationStore"; // FUNCTIONS SHOULD ONLY BE APPENDED!! // the index in the array is the database version diff --git a/src/matrix/storage/idb/stores/OperationStore.js b/src/matrix/storage/idb/stores/OperationStore.ts similarity index 100% rename from src/matrix/storage/idb/stores/OperationStore.js rename to src/matrix/storage/idb/stores/OperationStore.ts