Fix implicit profiles being created when opening a reader

- Fix default profiles not being marked as such when creating an account
- Mention that no implicit profiles are created for pdfs
This commit is contained in:
Amelia 2025-06-01 15:21:01 +02:00
parent a67e15bbb3
commit 643c499f16
5 changed files with 20 additions and 14 deletions

View file

@ -128,6 +128,7 @@ public class ReadingProfileService(IUnitOfWork unitOfWork, ILocalizationService
var newProfile = new AppUserReadingProfileBuilder(user.Id).Build();
UpdateReaderProfileFields(newProfile, dto);
unitOfWork.AppUserReadingProfileRepository.Add(newProfile);
user.UserPreferences.ReadingProfiles.Add(newProfile);
await unitOfWork.CommitAsync();