private DateTime GetTimestamp(agsXMPP.protocol.client.Message msg)
{
try
{
DateTime timeStamp;
agsXMPP.protocol.x.Delay delay = msg.XDelay;
if (delay != null)
timeStamp = delay.Stamp;
else
timeStamp = DateTime.Now;
return timeStamp;
}
catch (Exception ex)
{
return DateTime.Now;
}
}