mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 10:46:00 +08:00
Change the client API to use GridInstantMessage for the "last mile" of IM
sending. With this change, all methods that handle IM now use GridInstantMessage rather than individual parameters.
This commit is contained in:
@@ -679,9 +679,11 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
|
||||
CreateCallingCard(client, friendID, callingCardFolders[0], friendPresence.Name);
|
||||
|
||||
// local message means OnGridInstantMessage won't be triggered, so do the work here.
|
||||
friendPresence.ControllingClient.SendInstantMessage(agentID, agentID.ToString(), friendID, client.Name,
|
||||
(byte)InstantMessageDialog.FriendshipAccepted,
|
||||
(uint)Util.UnixTimeSinceEpoch());
|
||||
friendPresence.ControllingClient.SendInstantMessage(
|
||||
new GridInstantMessage(client.Scene, agentID,
|
||||
client.Name, friendID,
|
||||
(byte)InstantMessageDialog.FriendshipAccepted,
|
||||
agentID.ToString(), false, Vector3.Zero));
|
||||
ApproveFriendship(agentID, friendID, client.Name);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user