From beba20846f1935e2769f78fb0c87746cf77a6b50 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Wed, 12 Mar 2014 19:31:04 +0000 Subject: When sending group notices through group messaging, allow the agent ID to use for fetching group data to be different from im.fromAgentID This is because xmlrpcgroups currently always checks visibility for the requesting agent ID (unlike Groups v2, which can accept UUID.Zero) But group notice IMs have a from agent which is the group rather than the sending agent. Further addresses http://opensimulator.org/mantis/view.php?id=7037 --- OpenSim/Region/Framework/Interfaces/IGroupsMessagingModule.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Framework/Interfaces') diff --git a/OpenSim/Region/Framework/Interfaces/IGroupsMessagingModule.cs b/OpenSim/Region/Framework/Interfaces/IGroupsMessagingModule.cs index 61bd153..7dc1552 100644 --- a/OpenSim/Region/Framework/Interfaces/IGroupsMessagingModule.cs +++ b/OpenSim/Region/Framework/Interfaces/IGroupsMessagingModule.cs @@ -83,10 +83,15 @@ namespace OpenSim.Region.Framework.Interfaces /// dialog - This must be (byte)InstantMessageDialog.SessionSend /// /// + /// + /// The requesting agent to use when querying the groups service. Sometimes this is different from + /// im.fromAgentID, with group notices, for example. + /// /// /// The condition that must be met by a member for the message to be sent. If null then the message is sent /// if the chat session is active. /// - void SendMessageToGroup(GridInstantMessage im, UUID groupID, Func sendCondition); + void SendMessageToGroup( + GridInstantMessage im, UUID groupID, UUID sendingAgentForGroupCalls, Func sendCondition); } } \ No newline at end of file -- cgit v1.1