diff options
author | Oren Hurvitz | 2013-10-29 16:38:03 +0200 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2014-01-16 00:24:51 +0000 |
commit | 2d9d6fe922c99e79489b19b18ac33338012137ff (patch) | |
tree | 2a3a64542c6b321bcce759c1e954043a0d55e368 /OpenSim/Addons/OfflineIM/Service/OfflineIMService.cs | |
parent | In the offline message table, store the sender. (diff) | |
download | opensim-SC-2d9d6fe922c99e79489b19b18ac33338012137ff.zip opensim-SC-2d9d6fe922c99e79489b19b18ac33338012137ff.tar.gz opensim-SC-2d9d6fe922c99e79489b19b18ac33338012137ff.tar.bz2 opensim-SC-2d9d6fe922c99e79489b19b18ac33338012137ff.tar.xz |
Can delete the Offline Messages sent to/from a user.
This is useful if the user is deleted.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Addons/OfflineIM/Service/OfflineIMService.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Addons/OfflineIM/Service/OfflineIMService.cs b/OpenSim/Addons/OfflineIM/Service/OfflineIMService.cs index df0c53f..690c955 100644 --- a/OpenSim/Addons/OfflineIM/Service/OfflineIMService.cs +++ b/OpenSim/Addons/OfflineIM/Service/OfflineIMService.cs | |||
@@ -124,5 +124,12 @@ namespace OpenSim.OfflineIM | |||
124 | return m_Database.Store(data); | 124 | return m_Database.Store(data); |
125 | 125 | ||
126 | } | 126 | } |
127 | |||
128 | public void DeleteMessages(UUID userID) | ||
129 | { | ||
130 | m_Database.Delete("PrincipalID", userID.ToString()); | ||
131 | m_Database.Delete("FromID", userID.ToString()); | ||
132 | } | ||
133 | |||
127 | } | 134 | } |
128 | } | 135 | } |