1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-13 07:42:14 +03:00

Remove the logic that throws when the lazy loading options has changed. (#4124)

* remove InvalidStoreState and the logic that checks for the change in the lazyLoading client option

* lint
This commit is contained in:
David Langley
2024-03-22 16:36:23 +00:00
committed by GitHub
parent dce8acbf17
commit a573727662
2 changed files with 11 additions and 59 deletions

View File

@@ -14,25 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
export enum InvalidStoreState {
ToggledLazyLoading,
}
export class InvalidStoreError extends Error {
public static TOGGLED_LAZY_LOADING = InvalidStoreState.ToggledLazyLoading;
public constructor(
public readonly reason: InvalidStoreState,
public readonly value: any,
) {
const message =
`Store is invalid because ${reason}, ` +
`please stop the client, delete all data and start the client again`;
super(message);
this.name = "InvalidStoreError";
}
}
export enum InvalidCryptoStoreState {
TooNew = "TOO_NEW",
}