Files: added rooms folder cache clearing

This commit is contained in:
Maksim Chegulov 2022-06-13 17:41:13 +03:00
parent 5be6e7cbee
commit 3e2483a016

View File

@ -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);