public void RemoveFriend(NewUser user) { Xmpp.PresenceManager.Unsubscribe(user.User); RosterManager.RemoveRosterItem(user.User); Friends.Remove(user); OnDataRecieved.Invoke(this, DataRecType.FriendList, this); }
public void RemoveContact(Interlocutor interlocutor) { _rosterManager.RemoveRosterItem(XmppIdConverter.Convert(interlocutor.Id)); //not waiting responce after RemoveRosterItem executed Client.Contacts.Remove(interlocutor); }
public void Delete(string jid) { _presence.Unsubscribe(jid); _roster.RemoveRosterItem(jid); }