aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/Cache
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Communications/Cache')
-rw-r--r--OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
index 70aec47..32d941c 100644
--- a/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
+++ b/OpenSim/Framework/Communications/Cache/UserProfileCacheService.cs
@@ -127,6 +127,26 @@ namespace OpenSim.Framework.Communications.Cache
127 } 127 }
128 } 128 }
129 129
130 public void HandleUpdateInventoryFolder(IClientAPI remoteClient, LLUUID folderID, ushort type, string name, LLUUID parentID)
131 {
132 CachedUserInfo userProfile;
133
134 if (m_userProfiles.TryGetValue(remoteClient.AgentId, out userProfile))
135 {
136 if (userProfile.RootFolder != null)
137 {
138 InventoryFolderBase baseFolder = new InventoryFolderBase();
139 baseFolder.agentID = remoteClient.AgentId;
140 baseFolder.folderID = folderID;
141 baseFolder.name = name;
142 baseFolder.parentID = parentID;
143 baseFolder.type = (short)type;
144 baseFolder.version = userProfile.RootFolder.version;
145 m_parent.InventoryService.AddNewInventoryFolder(remoteClient.AgentId, baseFolder);
146 }
147 }
148 }
149
130 /// <summary> 150 /// <summary>
131 /// Tell the client about the various child items and folders contained in the requested folder. 151 /// Tell the client about the various child items and folders contained in the requested folder.
132 /// </summary> 152 /// </summary>