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:
Melanie Thielker
2009-03-29 05:42:27 +00:00
parent 404bfdc9a6
commit c483206fd7
12 changed files with 61 additions and 135 deletions

View File

@@ -113,16 +113,8 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
if (!user.IsChildAgent)
{
m_log.DebugFormat("[INSTANT MESSAGE]: Delivering to client");
user.ControllingClient.SendInstantMessage(
new UUID(im.fromAgentID),
im.message,
new UUID(im.toAgentID),
im.fromAgentName,
im.dialog,
im.timestamp,
new UUID(im.imSessionID),
im.fromGroup,
im.binaryBucket);
user.ControllingClient.SendInstantMessage(im);
// Message sent
result(true);
return;
@@ -143,16 +135,8 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
ScenePresence user = (ScenePresence) scene.Entities[toAgentID];
m_log.DebugFormat("[INSTANT MESSAGE]: Delivering to client");
user.ControllingClient.SendInstantMessage(
new UUID(im.fromAgentID),
im.message,
new UUID(im.toAgentID),
im.fromAgentName,
im.dialog,
im.timestamp,
new UUID(im.imSessionID),
im.fromGroup,
im.binaryBucket);
user.ControllingClient.SendInstantMessage(im);
// Message sent
result(true);
return;