예제 #1
0
        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);
            }
        }
예제 #2
0
 public bool IsTracking(TLPeerBase peer)
 {
     return(Items.Any(x => x.Parent != null && peer.Equals(x.Parent.ToPeer())));
 }