From d07c38effd845d3ab9ca03f73fed21dc123dd95b Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Wed, 11 Aug 2021 13:54:33 -0700 Subject: [PATCH] Migrate common.ts --- src/matrix/storage/idb/stores/DeviceIdentityStore.js | 2 +- src/matrix/storage/idb/stores/GroupSessionDecryptionStore.js | 2 +- src/matrix/storage/idb/stores/InboundGroupSessionStore.js | 2 +- src/matrix/storage/idb/stores/OperationStore.js | 2 +- src/matrix/storage/idb/stores/RoomMemberStore.js | 2 +- src/matrix/storage/idb/stores/RoomStateStore.js | 2 +- src/matrix/storage/idb/stores/TimelineRelationStore.js | 2 +- src/matrix/storage/idb/stores/{common.js => common.ts} | 0 8 files changed, 7 insertions(+), 7 deletions(-) rename src/matrix/storage/idb/stores/{common.js => common.ts} (100%) diff --git a/src/matrix/storage/idb/stores/DeviceIdentityStore.js b/src/matrix/storage/idb/stores/DeviceIdentityStore.js index bfc5b30b..207cfb20 100644 --- a/src/matrix/storage/idb/stores/DeviceIdentityStore.js +++ b/src/matrix/storage/idb/stores/DeviceIdentityStore.js @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import {MAX_UNICODE, MIN_UNICODE} from "./common.js"; +import {MAX_UNICODE, MIN_UNICODE} from "./common"; function encodeKey(userId, deviceId) { return `${userId}|${deviceId}`; diff --git a/src/matrix/storage/idb/stores/GroupSessionDecryptionStore.js b/src/matrix/storage/idb/stores/GroupSessionDecryptionStore.js index f3a721f1..da47639d 100644 --- a/src/matrix/storage/idb/stores/GroupSessionDecryptionStore.js +++ b/src/matrix/storage/idb/stores/GroupSessionDecryptionStore.js @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import {MIN_UNICODE, MAX_UNICODE} from "./common.js"; +import {MIN_UNICODE, MAX_UNICODE} from "./common"; function encodeKey(roomId, sessionId, messageIndex) { return `${roomId}|${sessionId}|${messageIndex}`; diff --git a/src/matrix/storage/idb/stores/InboundGroupSessionStore.js b/src/matrix/storage/idb/stores/InboundGroupSessionStore.js index f5dcdc39..488f2510 100644 --- a/src/matrix/storage/idb/stores/InboundGroupSessionStore.js +++ b/src/matrix/storage/idb/stores/InboundGroupSessionStore.js @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import {MIN_UNICODE, MAX_UNICODE} from "./common.js"; +import {MIN_UNICODE, MAX_UNICODE} from "./common"; function encodeKey(roomId, senderKey, sessionId) { return `${roomId}|${senderKey}|${sessionId}`; diff --git a/src/matrix/storage/idb/stores/OperationStore.js b/src/matrix/storage/idb/stores/OperationStore.js index e2040e30..961e36af 100644 --- a/src/matrix/storage/idb/stores/OperationStore.js +++ b/src/matrix/storage/idb/stores/OperationStore.js @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -import {MIN_UNICODE, MAX_UNICODE} from "./common.js"; +import {MIN_UNICODE, MAX_UNICODE} from "./common"; export function encodeScopeTypeKey(scope, type) { return `${scope}|${type}`; diff --git a/src/matrix/storage/idb/stores/RoomMemberStore.js b/src/matrix/storage/idb/stores/RoomMemberStore.js index f900ff0b..7b2d2032 100644 --- a/src/matrix/storage/idb/stores/RoomMemberStore.js +++ b/src/matrix/storage/idb/stores/RoomMemberStore.js @@ -15,7 +15,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import {MAX_UNICODE} from "./common.js"; +import {MAX_UNICODE} from "./common"; function encodeKey(roomId, userId) { return `${roomId}|${userId}`; diff --git a/src/matrix/storage/idb/stores/RoomStateStore.js b/src/matrix/storage/idb/stores/RoomStateStore.js index 99fc23f7..db54458f 100644 --- a/src/matrix/storage/idb/stores/RoomStateStore.js +++ b/src/matrix/storage/idb/stores/RoomStateStore.js @@ -15,7 +15,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import {MAX_UNICODE} from "./common.js"; +import {MAX_UNICODE} from "./common"; function encodeKey(roomId, eventType, stateKey) { return `${roomId}|${eventType}|${stateKey}`; diff --git a/src/matrix/storage/idb/stores/TimelineRelationStore.js b/src/matrix/storage/idb/stores/TimelineRelationStore.js index bba24fc3..5e802b65 100644 --- a/src/matrix/storage/idb/stores/TimelineRelationStore.js +++ b/src/matrix/storage/idb/stores/TimelineRelationStore.js @@ -13,7 +13,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -import {MIN_UNICODE, MAX_UNICODE} from "./common.js"; +import {MIN_UNICODE, MAX_UNICODE} from "./common"; function encodeKey(roomId, targetEventId, relType, sourceEventId) { return `${roomId}|${targetEventId}|${relType}|${sourceEventId}`; diff --git a/src/matrix/storage/idb/stores/common.js b/src/matrix/storage/idb/stores/common.ts similarity index 100% rename from src/matrix/storage/idb/stores/common.js rename to src/matrix/storage/idb/stores/common.ts