Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 05d58895 authored by Chandru S's avatar Chandru S
Browse files

Move all bouncer messages domain logic to the interactor

Summary of changes:
 1. Remove all duplicated state from the repository, we still need one field to save custom messages
 2. Migrate all the domain logic to the interactor
 3. Fix trust Agent disabled message not being shown, we need to check if trust is usually managed insted of currently managed.
 4. Check whether fingerprint auth is enrolled to show the "unlock with fingerprint" message
 5. Move the BouncerMessageRepository tests to the interactor
 6. If face auth is class3, then whenever face auth is locked out, we should show "Pin is required after too many attempts"
 7. Got rid of BouncerMessageFactory as well, having a separate prompt_reason and then mapping it in the factory seemed like an unnecessary step, now the interactor directly creates the model when it was returning the prompt reason.

Fixes: 293477650
Fixes: 293476775
Fixes: 293472698
Fixes: 293478276
Test: atest BouncerMessageInteractorTest
Test: atest TrustRepositoryTest

Change-Id: Ib33fa67c3238d3b219dc10ab26972202b3f7bbee
parent 9408b29f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment