about summary refs log tree commit diff
path: root/MatrixRoomUtils.Web/Classes/MRUStorageWrapper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MatrixRoomUtils.Web/Classes/MRUStorageWrapper.cs')
-rw-r--r--MatrixRoomUtils.Web/Classes/MRUStorageWrapper.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/MatrixRoomUtils.Web/Classes/MRUStorageWrapper.cs b/MatrixRoomUtils.Web/Classes/MRUStorageWrapper.cs
index 8ea85e9..0947bbe 100644
--- a/MatrixRoomUtils.Web/Classes/MRUStorageWrapper.cs
+++ b/MatrixRoomUtils.Web/Classes/MRUStorageWrapper.cs
@@ -1,6 +1,5 @@
 using LibMatrix;
 using LibMatrix.Homeservers;
-using LibMatrix.Responses;
 using LibMatrix.Services;
 using Microsoft.AspNetCore.Components;
 
@@ -22,6 +21,9 @@ public class MRUStorageWrapper {
     }
 
     public async Task<List<UserAuth>?> GetAllTokens() {
+        if (!await _storageService.DataStorageProvider.ObjectExistsAsync("mru.tokens")) {
+            
+        }
         return await _storageService.DataStorageProvider.LoadObjectAsync<List<UserAuth>>("mru.tokens") ??
                new List<UserAuth>();
     }