Exemple #1
0
        public void Handle(TLUpdateUserPhoto update)
        {
            //threadpool
            var userId  = update.UserId;
            var contact = CacheService.GetUser(userId) as TLUserContact;

            if (contact != null)
            {
                ContactsHelper.UpdateContactAsync(_fileManager, StateService, contact);
            }
        }
Exemple #2
0
        public void Handle(TLUpdateUserPhoto update)
        {
            //threadpool
            var userId   = update.UserId;
            var userBase = CacheService.GetUser(userId);

            if (userBase != null && userBase.IsContact)
            {
                ContactsHelper.UpdateContactAsync(DownloadFileManager, StateService, userBase);
            }
        }