From 3e2483a016a0e32b3925947b04b61d32c72bd640 Mon Sep 17 00:00:00 2001 From: MaksimChegulov Date: Mon, 13 Jun 2022 17:41:13 +0300 Subject: [PATCH] Files: added rooms folder cache clearing --- products/ASC.Files/Core/Utils/FileMarker.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/products/ASC.Files/Core/Utils/FileMarker.cs b/products/ASC.Files/Core/Utils/FileMarker.cs index 0d02dbf2ca..3cd25f77b5 100644 --- a/products/ASC.Files/Core/Utils/FileMarker.cs +++ b/products/ASC.Files/Core/Utils/FileMarker.cs @@ -259,7 +259,7 @@ public class FileMarker } else if (obj.FileEntry.RootFolderType == FolderType.VirtualRooms) { - var virtualRoomsFolderId = await _globalFolder.GetFolderVirtualRooms(_daoFactory); + var virtualRoomsFolderId = await _globalFolder.GetFolderVirtualRoomsAsync(_daoFactory); userIDs.ForEach(userID => RemoveFromCahce(virtualRoomsFolderId, userID)); } else if (obj.FileEntry.RootFolderType == FolderType.Privacy) @@ -473,6 +473,10 @@ public class FileMarker if (rootFolder == null) { } + else if (rootFolder.RootFolderType == FolderType.VirtualRooms) + { + cacheFolderId = rootFolderId = await _globalFolder.GetFolderVirtualRoomsAsync(_daoFactory); + } else if (rootFolder.RootFolderType == FolderType.BUNCH) { cacheFolderId = rootFolderId = await _globalFolder.GetFolderProjectsAsync(_daoFactory);