Also update grouptag for XmlRpcGroups

This commit is contained in:
lickx
2025-03-24 05:47:37 +01:00
parent fa0619a15f
commit 23dd51c733
2 changed files with 9 additions and 5 deletions

View File

@@ -33,7 +33,6 @@ using log4net;
using Mono.Addins;
using Nini.Config;
using OpenMetaverse;
using OpenMetaverse.ImportExport.Collada14;
using OpenMetaverse.StructuredData;
using OpenSim.Framework;
using OpenSim.Region.Framework.Interfaces;

View File

@@ -1080,11 +1080,16 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
{
if (m_debugEnabled) m_log.DebugFormat("[GROUPS]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name);
m_groupData.SetAgentActiveGroupRole(GetRequestingAgentID(remoteClient), GetRequestingAgentID(remoteClient), groupID, titleRoleID);
UUID agentID = remoteClient.AgentId;
m_groupData.SetAgentActiveGroupRole(agentID, agentID, groupID, titleRoleID);
// TODO: Not sure what all is needed here, but if the active group role change is for the group
// the client currently has set active, then we need to do a scene presence update too
// if (m_groupData.GetAgentActiveMembership(GetRequestingAgentID(remoteClient)).GroupID == GroupID)
// If the active group role change is for the group
// the client currently has set active, then we need to
// set the active group again for the tag to update
if (m_groupData.GetAgentActiveMembership(agentID, agentID).GroupID == groupID)
{
m_groupData.SetAgentActiveGroup(agentID, agentID, groupID);
}
SendDataUpdate(remoteClient, true);
}