we do need to ship the cached friends around on teleports (friends must come from grid)

This commit is contained in:
UbitUmarov
2023-02-03 17:17:02 +00:00
parent a7b8ce9cfd
commit 3858cc945c
4 changed files with 51 additions and 9 deletions

View File

@@ -4947,6 +4947,12 @@ namespace OpenSim.Region.Framework.Scenes
else
cAgent.ActiveGroupTitle = Grouptitle;
}
IFriendsModule friendsModule = m_scene.RequestModuleInterface<IFriendsModule>();
if (friendsModule != null)
{
cAgent.CachedFriendsOnline = friendsModule.GetCachedFriendsOnline(UUID);
}
}
private void CopyFrom(AgentData cAgent)
@@ -5107,6 +5113,13 @@ namespace OpenSim.Region.Framework.Scenes
lock (m_originRegionIDAccessLock)
m_originRegionID = cAgent.RegionID;
if (cAgent.CachedFriendsOnline != null)
{
IFriendsModule friendsModule = m_scene.RequestModuleInterface<IFriendsModule>();
friendsModule?.CacheFriendsOnline(UUID, cAgent.CachedFriendsOnline, true);
}
}
public bool CopyAgent(out IAgentData agent)