Subject: Checking if user gets disconnected
Hi, I would like to add the status of a user when it changes to the chat window TextBox, however I can't really figure out how to do it...
I tought something like this would do the trick:
I tought something like this would do the trick:
public void PresenceChanged(agsXMPP.protocol.client.Presence state)
{
if (state.Type == PresenceType.unavailable)
rtfChat.AppendText("User offline");
}
But that did nothing, can someone please help out ?
{
if (state.Type == PresenceType.unavailable)
rtfChat.AppendText("User offline");
}