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); } }
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); } }