From e8196ca2e7532cccae2fdecce3dff14294f66750 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 8 Feb 2025 21:08:22 +0100 Subject: Various changes --- MatrixUtils.Web/Classes/Constants/RoomConstants.cs | 5 +++-- MatrixUtils.Web/Classes/RMUStorageWrapper.cs | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'MatrixUtils.Web/Classes') diff --git a/MatrixUtils.Web/Classes/Constants/RoomConstants.cs b/MatrixUtils.Web/Classes/Constants/RoomConstants.cs index 5df0d01..dc81d04 100644 --- a/MatrixUtils.Web/Classes/Constants/RoomConstants.cs +++ b/MatrixUtils.Web/Classes/Constants/RoomConstants.cs @@ -1,6 +1,7 @@ namespace MatrixUtils.Web.Classes.Constants; public class RoomConstants { - public static readonly string[] DangerousRoomVersions = { "1", "8" }; - public const string RecommendedRoomVersion = "10"; + public static readonly string[] DangerousRoomVersions = ["1", "8"]; + public static readonly string[] UnsupportedRoomVersions = ["1", "2", "3", "4", "5", "6"]; + public const string RecommendedRoomVersion = "11"; } diff --git a/MatrixUtils.Web/Classes/RMUStorageWrapper.cs b/MatrixUtils.Web/Classes/RMUStorageWrapper.cs index 337c7e4..e63c28e 100644 --- a/MatrixUtils.Web/Classes/RMUStorageWrapper.cs +++ b/MatrixUtils.Web/Classes/RMUStorageWrapper.cs @@ -25,6 +25,10 @@ public class RMUStorageWrapper(ILogger logger, TieredStorageS await SetCurrentToken(currentToken = allTokens[0]); } + if (currentToken is null) { + await SetCurrentToken(currentToken = allTokens[0]); + } + if (!allTokens.Any(x => x.AccessToken == currentToken.AccessToken)) { await SetCurrentToken(currentToken = allTokens[0]); } -- cgit 1.5.1