* Add a Module API for accessing the Platform. * Drop overkill module test * drop unused sample file * fix import * Update module API * fix typo * fix typo again * and again * update api
16 lines
565 B
TypeScript
16 lines
565 B
TypeScript
/*
|
|
Copyright 2026 Element Creations Ltd.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
|
Please see LICENSE files in the repository root for full details.
|
|
*/
|
|
|
|
import type { StorageHelperApi as IStorageHelperApi } from "@element-hq/element-web-module-api";
|
|
import PlatformPeg from "../PlatformPeg";
|
|
|
|
export class StorageHelperApi implements IStorageHelperApi {
|
|
public async getPickleKey(userId: string, deviceId: string): Promise<string | null> {
|
|
return PlatformPeg.get()!.getPickleKey(userId, deviceId);
|
|
}
|
|
}
|