about summary refs log tree commit diff
diff options
context:
space:
mode:
m---------LibMatrix0
-rw-r--r--MatrixUtils.Web/Pages/Rooms/Index.razor3
-rw-r--r--MatrixUtils.Web/Pages/Rooms/Index2Components/RoomsIndex2SyncContainer.razor7
m---------MxApiExtensions0
4 files changed, 6 insertions, 4 deletions
diff --git a/LibMatrix b/LibMatrix
-Subproject 98409a7ee34a2796cd5f760c962fee8567e8c6b
+Subproject 2b566a31b68f14d51faae61cbfbe359d0691a89
diff --git a/MatrixUtils.Web/Pages/Rooms/Index.razor b/MatrixUtils.Web/Pages/Rooms/Index.razor
index d7a3569..c44e23f 100644
--- a/MatrixUtils.Web/Pages/Rooms/Index.razor
+++ b/MatrixUtils.Web/Pages/Rooms/Index.razor
@@ -73,7 +73,8 @@
         // SemaphoreSlim _semaphore = new(160, 160);
         GlobalProfile = await Homeserver.GetProfileAsync(Homeserver.WhoAmI.UserId);
 
-        var filter = await Homeserver.GetOrUploadNamedFilterIdAsync(CommonSyncFilters.GetBasicRoomInfo);
+        // var filter = await Homeserver.NamedCaches.FilterCache.GetOrSetValueAsync(CommonSyncFilters.GetBasicRoomInfo);
+        var filter = await Homeserver.NamedCaches.FilterCache.GetOrSetValueAsync(CommonSyncFilters.GetBasicRoomInfo);
         var filterData = await Homeserver.GetFilterAsync(filter);
         
         // Rooms = new ObservableCollection<RoomInfo>(rooms.Select(room => new RoomInfo(room)));
diff --git a/MatrixUtils.Web/Pages/Rooms/Index2Components/RoomsIndex2SyncContainer.razor b/MatrixUtils.Web/Pages/Rooms/Index2Components/RoomsIndex2SyncContainer.razor
index bbc63eb..1fb3f89 100644
--- a/MatrixUtils.Web/Pages/Rooms/Index2Components/RoomsIndex2SyncContainer.razor
+++ b/MatrixUtils.Web/Pages/Rooms/Index2Components/RoomsIndex2SyncContainer.razor
@@ -49,7 +49,8 @@
         var syncHelpers = new Dictionary<string, SyncHelper>() {
             ["Main"] = new SyncHelper(Data.Homeserver, logger) {
                 Timeout = 30000,
-                FilterId = await Data.Homeserver.GetOrUploadNamedFilterIdAsync(CommonSyncFilters.GetBasicRoomInfo),
+                FilterId = await Data.Homeserver.NamedCaches.FilterCache.GetOrSetValueAsync(CommonSyncFilters.GetBasicRoomInfo),
+                // FilterId = await Data.Homeserver.NamedCaches.FilterCache.GetOrSetValueAsync(CommonSyncFilters.GetBasicRoomInfo),
                 // MinimumDelay = TimeSpan.FromMilliseconds(5000)
             }
         };
@@ -59,13 +60,13 @@
             status.Status = "Initial sync indicates that server supports filters, starting helpers!";
             syncHelpers.Add("SpaceRelations", new SyncHelper(Data.Homeserver, logger) {
                 Timeout = 30000,
-                FilterId = await Data.Homeserver.GetOrUploadNamedFilterIdAsync(CommonSyncFilters.GetSpaceRelations),
+                FilterId = await Data.Homeserver.NamedCaches.FilterCache.GetOrSetValueAsync(CommonSyncFilters.GetSpaceRelations),
                 // MinimumDelay = TimeSpan.FromMilliseconds(5000)
             });
 
             syncHelpers.Add("Profile", new SyncHelper(Data.Homeserver, logger) {
                 Timeout = 30000,
-                FilterId = await Data.Homeserver.GetOrUploadNamedFilterIdAsync(CommonSyncFilters.GetOwnMemberEvents),
+                FilterId = await Data.Homeserver.NamedCaches.FilterCache.GetOrSetValueAsync(CommonSyncFilters.GetOwnMemberEvents),
                 // MinimumDelay = TimeSpan.FromMilliseconds(5000)
             });
         }
diff --git a/MxApiExtensions b/MxApiExtensions
-Subproject 2d21596eec41cf1669f8064278b3273dc4f4c36
+Subproject 3c0c7b2e56a24bda06b8c567e5608546898c99d