diff options
author | Melanie Thielker | 2010-06-24 19:37:02 +0200 |
---|---|---|
committer | Melanie Thielker | 2010-06-24 19:37:02 +0200 |
commit | 2cc1f14b0c938cff51b7bbf3f13a51b306f87e1b (patch) | |
tree | 95bea65b156a2d48567921a0f54a92fb73e72714 /OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs | |
parent | New viewers don't set the "save offline IM" flag anymore. Set it serverside (diff) | |
download | opensim-SC_OLD-2cc1f14b0c938cff51b7bbf3f13a51b306f87e1b.zip opensim-SC_OLD-2cc1f14b0c938cff51b7bbf3f13a51b306f87e1b.tar.gz opensim-SC_OLD-2cc1f14b0c938cff51b7bbf3f13a51b306f87e1b.tar.bz2 opensim-SC_OLD-2cc1f14b0c938cff51b7bbf3f13a51b306f87e1b.tar.xz |
Replace the imSessionID, which is useless out of context, with the scope id
in saved IMs
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs index 9412735..5f9f518 100644 --- a/OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs | |||
@@ -204,6 +204,13 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage | |||
204 | if ((im.offline != 0) | 204 | if ((im.offline != 0) |
205 | && (!im.fromGroup || (im.fromGroup && m_ForwardOfflineGroupMessages))) | 205 | && (!im.fromGroup || (im.fromGroup && m_ForwardOfflineGroupMessages))) |
206 | { | 206 | { |
207 | // It's not delivered. Make sure the scope id is saved | ||
208 | // We don't need the imSessionID here anymore, overwrite it | ||
209 | Scene scene = FindScene(new UUID(im.fromAgentID)); | ||
210 | if (scene == null) | ||
211 | scene = m_SceneList[0]; | ||
212 | im.imSessionID = new Guid(scene.RegionInfo.ScopeID.ToString()); | ||
213 | |||
207 | bool success = SynchronousRestObjectPoster.BeginPostObject<GridInstantMessage, bool>( | 214 | bool success = SynchronousRestObjectPoster.BeginPostObject<GridInstantMessage, bool>( |
208 | "POST", m_RestURL+"/SaveMessage/", im); | 215 | "POST", m_RestURL+"/SaveMessage/", im); |
209 | 216 | ||