off line module V2 must not sent a empty mutes list. That is mutes modules job (or let viewers use they cached entries if none)
parent
fcb8b2a3c3
commit
e0fd966186
|
@ -114,7 +114,6 @@ namespace OpenSim.OfflineIM
|
||||||
scene.ForEachClient(delegate(IClientAPI client)
|
scene.ForEachClient(delegate(IClientAPI client)
|
||||||
{
|
{
|
||||||
client.OnRetrieveInstantMessages -= RetrieveInstantMessages;
|
client.OnRetrieveInstantMessages -= RetrieveInstantMessages;
|
||||||
client.OnMuteListRequest -= OnMuteListRequest;
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -162,7 +161,6 @@ namespace OpenSim.OfflineIM
|
||||||
private void OnNewClient(IClientAPI client)
|
private void OnNewClient(IClientAPI client)
|
||||||
{
|
{
|
||||||
client.OnRetrieveInstantMessages += RetrieveInstantMessages;
|
client.OnRetrieveInstantMessages += RetrieveInstantMessages;
|
||||||
client.OnMuteListRequest += OnMuteListRequest;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void RetrieveInstantMessages(IClientAPI client)
|
private void RetrieveInstantMessages(IClientAPI client)
|
||||||
|
@ -194,20 +192,6 @@ namespace OpenSim.OfflineIM
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apparently this is needed in order for the viewer to request the IMs.
|
|
||||||
private void OnMuteListRequest(IClientAPI client, uint crc)
|
|
||||||
{
|
|
||||||
m_log.DebugFormat("[OfflineIM.V2] Got mute list request for crc {0}", crc);
|
|
||||||
string filename = "mutes" + client.AgentId.ToString();
|
|
||||||
|
|
||||||
IXfer xfer = client.Scene.RequestModuleInterface<IXfer>();
|
|
||||||
if (xfer != null)
|
|
||||||
{
|
|
||||||
xfer.AddNewFile(filename, new Byte[0]);
|
|
||||||
client.SendMuteListUpdate(filename);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void UndeliveredMessage(GridInstantMessage im)
|
private void UndeliveredMessage(GridInstantMessage im)
|
||||||
{
|
{
|
||||||
if (im.dialog != (byte)InstantMessageDialog.MessageFromObject &&
|
if (im.dialog != (byte)InstantMessageDialog.MessageFromObject &&
|
||||||
|
|
Loading…
Reference in New Issue