Replace the imSessionID, which is useless out of context, with the scope id

in saved IMs
avinationmerge
Melanie Thielker 2010-06-24 19:37:02 +02:00
parent b012e963d7
commit 2cc1f14b0c
1 changed files with 7 additions and 0 deletions

View File

@ -204,6 +204,13 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
if ((im.offline != 0)
&& (!im.fromGroup || (im.fromGroup && m_ForwardOfflineGroupMessages)))
{
// It's not delivered. Make sure the scope id is saved
// We don't need the imSessionID here anymore, overwrite it
Scene scene = FindScene(new UUID(im.fromAgentID));
if (scene == null)
scene = m_SceneList[0];
im.imSessionID = new Guid(scene.RegionInfo.ScopeID.ToString());
bool success = SynchronousRestObjectPoster.BeginPostObject<GridInstantMessage, bool>(
"POST", m_RestURL+"/SaveMessage/", im);