public void StopTracking(TLPeerBase peer) { var message = Items.FirstOrDefault(x => peer.Equals(x.Parent.ToPeer())); if (message != null) { Items.Remove(message); Update(message, null, true); } }
public bool IsTracking(TLPeerBase peer) { return(Items.Any(x => x.Parent != null && peer.Equals(x.Parent.ToPeer()))); }