Convert the scope id in the im session id to a URL variable. Fixes offline
group notice attachments not workingavinationmerge
parent
cccfd1db34
commit
385a6c4b34
|
@ -195,14 +195,6 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
|
||||||
|
|
||||||
im.offline = 1;
|
im.offline = 1;
|
||||||
|
|
||||||
// Reconstruct imSessionID
|
|
||||||
if (im.dialog == (byte)InstantMessageDialog.MessageFromAgent)
|
|
||||||
{
|
|
||||||
UUID fromAgentID = new UUID(im.fromAgentID);
|
|
||||||
UUID sessionID = fromAgentID ^ client.AgentId;
|
|
||||||
im.imSessionID = new Guid(sessionID.ToString());
|
|
||||||
}
|
|
||||||
|
|
||||||
Scene s = FindScene(client.AgentId);
|
Scene s = FindScene(client.AgentId);
|
||||||
if (s != null)
|
if (s != null)
|
||||||
s.EventManager.TriggerIncomingInstantMessage(im);
|
s.EventManager.TriggerIncomingInstantMessage(im);
|
||||||
|
@ -226,10 +218,10 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
|
||||||
Scene scene = FindScene(new UUID(im.fromAgentID));
|
Scene scene = FindScene(new UUID(im.fromAgentID));
|
||||||
if (scene == null)
|
if (scene == null)
|
||||||
scene = m_SceneList[0];
|
scene = m_SceneList[0];
|
||||||
im.imSessionID = new Guid(scene.RegionInfo.ScopeID.ToString());
|
|
||||||
|
|
||||||
bool success = SynchronousRestObjectPoster.BeginPostObject<GridInstantMessage, bool>(
|
bool success = SynchronousRestObjectPoster.BeginPostObject<GridInstantMessage, bool>(
|
||||||
"POST", m_RestURL+"/SaveMessage/", im);
|
"POST", m_RestURL+"/SaveMessage/?scope=" +
|
||||||
|
scene.RegionInfo.ScopeID.ToString(), im);
|
||||||
|
|
||||||
if (im.dialog == (byte)InstantMessageDialog.MessageFromAgent)
|
if (im.dialog == (byte)InstantMessageDialog.MessageFromAgent)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue